Spanish address format
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- cpp
- 領域
- localization
調査の方向性
リンク先のスペインの住所形式データから始め、libaddressinput が %n、オプションフィールド、admin1 フィールドをどのように処理するか確認してください。形式を変更する前に、意図されたフォーマット動作を明確にしてください。完了の条件は、スペインの住所で、州が存在する場合も存在しない場合も、州が適切に表示されることです。
索引モデルが issue の本文から書いたものです。
説明
The address format for Spain is currently as follows:
"fmt":"%N%n%O%n%A%n%Z %C %S"
It looks wrong to me to have the province (%S) separated by a space. Instead, one of the following changes would make most sense:
- Put it in parentheses. That appears to be the more idiomatic formatting, but it seems to make it harder to make the province be optional.
- Add an optional field fmt_admin1 which, when present, indicates a format to use for the admin1 field if present. Then set fmt_admin1 to "(%S)" for Spain.
- Make it a newline (%n) instead of a space. This is a simple fix that libaddressinput supports and that is also supported by the postal service.
Regarding the first point, out in the wild, a well-formatted Spanish address seems to leave out the province if it's obvious. For example, for the city of Barcelona, one would write Barcelona by itself rather than write "Barcelona (Barcelona)". For that reason, it may be problematic to make the format string as simple as "%N%n%O%n%A%n%Z %C (%S)". When the admin1 is not present, the address would end up with empty parentheses.
- 主要言語
- C++
- スター
- 629
- フォーク
- 109
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/libaddressinput のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/libaddressinput#255 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
google/libaddressinput#245 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
google/libaddressinput#254 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 52/100
google/libaddressinput#250 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
google/libaddressinput#249 ·
google/libaddressinput の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Qiskit/qiskit-aer#2466 ·
-
feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
PX4/PX4-Autopilot#29006 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Segfault in pwStreamAddBuffer: createBuffer() returning nullptr is dereferenced (Screencopy.cpp:943)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100