Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

feat(bericht): the PDF is A4-only, with column widths tuned to hardcoded German headers

オープン
#404 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
40/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp

調査の方向性

Start with IncidentReportDocument.cs and AttachmentCaptionSection.cs to trace where A4 is selected, then read RolesSection.cs for the seven column widths and German headings. Check IncidentSettings for where a paper-size choice could live, and Formatting.cs for the shared date format; the issue also references #350 for UI string mechanisms. Done means supporting A4/Letter and fitting column widths to measured header text, while accounting for the report’s German strings.

索引モデルが issue の本文から書いたものです。

説明

enhancement i18n

From a portability review of main (ecb341b). Small and mechanical; grouped here because both halves live in LageBuch.Documents.

A4 is hardcoded

src/LageBuch.Documents/IncidentReportDocument.cs:56   page.Size(PageSizes.A4);
src/LageBuch.Documents/Sections/AttachmentCaptionSection.cs:32   page.Size(PageSizes.A4);

Margins are 1.5f, Unit.Centimetre. There is no Letter path and no setting. RolesSection.cs sizes its seven columns explicitly against "A4 portrait", so the page size is not purely a container — the column widths are tuned to it.

The section and column headings are hardcoded German arrays

e.g. RolesSection.cs:10 — ["Funktion", "Name", "Abschnitt", "Funkrufname", "Handynummer", "Von", "Bis"], plus "Einsatzdokumentation", "Einsatztagebuch (ETB)", "Kräfteübersicht", "Atemschutzüberwachung", "CO-Messprotokoll", "Angehängte Dateien", "Gesamtstärke: ", and the footer "Seite {n} / {total}". Roughly 42 distinct German literals across the assembly.

The PDF is also where the one de-DE CultureInfo in the codebase surfaces — Formatting.Timestamp (Formatting.cs:9,11, dd.MM.yyyy HH:mm) is shared by the report and the UI.

Why file it separately from #350

#350 is about the mechanism for UI strings. The report has two things the UI does not: column widths that are coupled to the chosen strings and the chosen page size, and an output that leaves the machine and gets filed. Whatever #350 decides, someone still has to re-fit RolesSection's seven columns when the headers change length — that work is specific to this assembly and worth knowing about before the i18n approach is chosen, not after.

Concretely: a paper-size setting (A4/Letter) on IncidentSettings, and the column widths derived from measured header text rather than tuned constants.

主要言語
C#
スター
1
フォーク
3
平均マージ
4時間 15分
マージ済み PR(30日)
181

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeForFire/lagebuch のほかの issue

CodeForFire/lagebuch の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。