Docs Languages
Portuguese (português)
Code pt. Not reviewed by a native speaker.
This page is generated by bun run docs:languages from the pack in src/core/lang/pt.ts. Do not edit it by hand: src/lang-docs.test.ts fails when it is out of date. A no-break space is shown as ~.
Quotation
| Register | Levels, outermost first |
|---|---|
| display | «…», “…”, ‘…’ |
| literary | as display |
A quotation nested deeper than the levels listed starts over from the first.
Dashes
| What | Setting |
|---|---|
| break in the sentence | spaced em dash |
| break in the sentence, literary | spaced em dash |
| line of dialogue (a paragraph opening with a dash) | em dash and a no-break space, in both registers |
Spaces
- One-letter words kept with the next word: none.
- Short words kept with the next word, in a title (the opt-in rule
space.short-word): none. - A no-break space between a number and %: yes.
- A no-break space between a number and € after it: no.
Abbreviations
| Kind | Entries |
|---|---|
| parts stay together | p. ex. a. C. d. C. N. B. P. S. S. A. S. M. |
| stay with what follows | Av |
| stay with a number | p cap fig vol |
Numbers
Groups of three are separated by ~, the decimal mark is ,.
Sources
- https://ciberduvidas.iscte-iul.pt/consultorio/perguntas/travessao-no-discurso-directo/8747
- https://publications.europa.eu/resource/cellar/01ed788a-d266-11ec-a95f-01aa75ed71a1.0008.01/DOC_1 (Código de Redação Interinstitucional, Portuguese of Portugal, PDF of 19 April 2022: 4.2.3 níveis de aspas and espaço protegido, 6.4 espaçamento dos sinais de pontuação, 6.5 pontuação nos números, 10.4.8 travessão, 10.4.10 aspas, anexo A3 abreviaturas)
- https://op.europa.eu/en/web/eu-vocabularies/formex/physical-specifications/character-encoding/use-of-quotation-marks-in-the-different-languages (Publications Office, quotation marks per language: pt
«…»“…”‘…’) - https://ciberduvidas.iscte-iul.pt/consultorio/perguntas/o-uso-das-aspas--e-/13051 (Ciberdúvidas da Língua Portuguesa:
«…»for quotation,“…”for a quotation inside a transcription,‘…’for a third level; example«O chefe disse ao seu subordinado: “Disfarce quando ouvir a palavra ‘relatório’, combinado?”») - https://pt.wikipedia.org/wiki/Aspas (cross-check only: Portugal
«…», Brazil“…”‘…’)
Notes
Dialogue: the travessão opens each turn and sets off the narrator, spaced in the examples (Ciberdúvidas, “Travessão no discurso directo”); no rule on spacing was found. European Portuguese is chosen because the audience is the EU: «…» then “…” then ‘…’, as in the Código de Redação Interinstitucional and at Ciberdúvidas (whose answer describes its own house style, the one used here). Brazilian Portuguese writes “…” with ‘…’ inside (Wikipedia, cross-check), which quoteStyle: “us” gives; no Brazilian style guide was read, and the Brazilian number format and abbreviations were not looked at. Not implemented, not verified: no source read gives a list of one-letter words (a, e, o) to keep off the end of a line, so there are no orphans; the travessão of 10.4.8 is the em dash, which is the default, and the dialogue dash is the same em dash, set from Ciberdúvidas above; the ordinals n.º and the forms Dr.ª, Sr.ª of annex A3 are not covered; elisions: a Portuguese apostrophe inside a word (d’Ouro) is already read as an apostrophe by the engine and no word starting with an apostrophe was found in a source; the ISG table read shows the space before % only, so the pack sets percentSpace and not currencySpace (49€ stays 49€).
Something wrong or unclear here? Report an issue.