forked from mirrors/org-mode
Some language support for Danish, Swedish and Norwegian
* ox.el (org-export-smart-quotes-alist): Added ("da" "no" "nb" "nn" "sv"). * ox.el (org-export-dictionary): Added some entries ("da" "no" "nb" "nn" "sv"). These languages are rather unrestricted, so some changes may to some extend reflect my preferences.
This commit is contained in:
parent
e7609fb904
commit
733fb0713e
87
lisp/ox.el
87
lisp/ox.el
|
@ -4893,7 +4893,20 @@ Return a list of src-block elements with a caption."
|
||||||
;; `org-export-smart-quotes-regexps'.
|
;; `org-export-smart-quotes-regexps'.
|
||||||
|
|
||||||
(defconst org-export-smart-quotes-alist
|
(defconst org-export-smart-quotes-alist
|
||||||
'(("de"
|
'(("da"
|
||||||
|
;; one may use: »...«, "...", ›...‹, or '...'.
|
||||||
|
;; http://sproget.dk/raad-og-regler/retskrivningsregler/retskrivningsregler/a7-40-60/a7-58-anforselstegn/
|
||||||
|
;; LaTeX quotes require Babel!
|
||||||
|
(opening-double-quote :utf-8 "»" :html "»" :latex ">>"
|
||||||
|
:texinfo "@guillemetright{}")
|
||||||
|
(closing-double-quote :utf-8 "«" :html "«" :latex "<<"
|
||||||
|
:texinfo "@guillemetleft{}")
|
||||||
|
(opening-single-quote :utf-8 "›" :html "›" :latex "\\frq{}"
|
||||||
|
:texinfo "@guilsinglright{}")
|
||||||
|
(closing-single-quote :utf-8 "‹" :html "‹" :latex "\\flq{}"
|
||||||
|
:texinfo "@guilsingleft{}")
|
||||||
|
(apostrophe :utf-8 "’" :html "’"))
|
||||||
|
("de"
|
||||||
(opening-double-quote :utf-8 "„" :html "„" :latex "\"`"
|
(opening-double-quote :utf-8 "„" :html "„" :latex "\"`"
|
||||||
:texinfo "@quotedblbase{}")
|
:texinfo "@quotedblbase{}")
|
||||||
(closing-double-quote :utf-8 "“" :html "“" :latex "\"'"
|
(closing-double-quote :utf-8 "“" :html "“" :latex "\"'"
|
||||||
|
@ -4926,7 +4939,42 @@ Return a list of src-block elements with a caption."
|
||||||
:texinfo "@guillemetleft{}@tie{}")
|
:texinfo "@guillemetleft{}@tie{}")
|
||||||
(closing-single-quote :utf-8 " »" :html " »" :latex "\\fg{}"
|
(closing-single-quote :utf-8 " »" :html " »" :latex "\\fg{}"
|
||||||
:texinfo "@tie{}@guillemetright{}")
|
:texinfo "@tie{}@guillemetright{}")
|
||||||
(apostrophe :utf-8 "’" :html "’")))
|
(apostrophe :utf-8 "’" :html "’"))
|
||||||
|
("no"
|
||||||
|
;; https://nn.wikipedia.org/wiki/Sitatteikn
|
||||||
|
(opening-double-quote :utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
||||||
|
:texinfo "@guillemetleft{}")
|
||||||
|
(closing-double-quote :utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
||||||
|
:texinfo "@guillemetright{}")
|
||||||
|
(opening-single-quote :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
||||||
|
(closing-single-quote :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
||||||
|
(apostrophe :utf-8 "’" :html "’"))
|
||||||
|
("nb"
|
||||||
|
;; https://nn.wikipedia.org/wiki/Sitatteikn
|
||||||
|
(opening-double-quote :utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
||||||
|
:texinfo "@guillemetleft{}")
|
||||||
|
(closing-double-quote :utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
||||||
|
:texinfo "@guillemetright{}")
|
||||||
|
(opening-single-quote :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
||||||
|
(closing-single-quote :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
||||||
|
(apostrophe :utf-8 "’" :html "’"))
|
||||||
|
("nn"
|
||||||
|
;; https://nn.wikipedia.org/wiki/Sitatteikn
|
||||||
|
(opening-double-quote :utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
||||||
|
:texinfo "@guillemetleft{}")
|
||||||
|
(closing-double-quote :utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
||||||
|
:texinfo "@guillemetright{}")
|
||||||
|
(opening-single-quote :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
||||||
|
(closing-single-quote :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
||||||
|
(apostrophe :utf-8 "’" :html "’"))
|
||||||
|
("sv"
|
||||||
|
;; based on https://sv.wikipedia.org/wiki/Citattecken
|
||||||
|
(opening-double-quote :utf-8 "”" :html "”" :latex "’’" :texinfo "’’")
|
||||||
|
(closing-double-quote :utf-8 "”" :html "”" :latex "’’" :texinfo "’’")
|
||||||
|
(opening-single-quote :utf-8 "’" :html "’" :latex "’" :texinfo "`")
|
||||||
|
(closing-single-quote :utf-8 "’" :html "’" :latex "’" :texinfo "'")
|
||||||
|
(apostrophe :utf-8 "’" :html "’"))
|
||||||
|
)
|
||||||
"Smart quotes translations.
|
"Smart quotes translations.
|
||||||
|
|
||||||
Alist whose CAR is a language string and CDR is an alist with
|
Alist whose CAR is a language string and CDR is an alist with
|
||||||
|
@ -5220,7 +5268,7 @@ them."
|
||||||
("Author"
|
("Author"
|
||||||
("ca" :default "Autor")
|
("ca" :default "Autor")
|
||||||
("cs" :default "Autor")
|
("cs" :default "Autor")
|
||||||
("da" :default "Ophavsmand")
|
("da" :default "Forfatter")
|
||||||
("de" :default "Autor")
|
("de" :default "Autor")
|
||||||
("eo" :html "Aŭtoro")
|
("eo" :html "Aŭtoro")
|
||||||
("es" :default "Autor")
|
("es" :default "Autor")
|
||||||
|
@ -5263,20 +5311,35 @@ them."
|
||||||
("zh-CN" :html "日期" :utf-8 "日期")
|
("zh-CN" :html "日期" :utf-8 "日期")
|
||||||
("zh-TW" :html "日期" :utf-8 "日期"))
|
("zh-TW" :html "日期" :utf-8 "日期"))
|
||||||
("Equation"
|
("Equation"
|
||||||
|
("da" :default "Ligning")
|
||||||
("de" :default "Gleichung")
|
("de" :default "Gleichung")
|
||||||
("es" :html "Ecuación" :default "Ecuación")
|
("es" :html "Ecuación" :default "Ecuación")
|
||||||
("fr" :ascii "Equation" :default "Équation")
|
("fr" :ascii "Equation" :default "Équation")
|
||||||
|
("no" :default "Ligning")
|
||||||
|
("nb" :default "Ligning")
|
||||||
|
("nn" :default "Likning")
|
||||||
|
("sv" :default "Ekvation")
|
||||||
("zh-CN" :html "方程" :utf-8 "方程"))
|
("zh-CN" :html "方程" :utf-8 "方程"))
|
||||||
("Figure"
|
("Figure"
|
||||||
|
("da" :default "Figur")
|
||||||
("de" :default "Abbildung")
|
("de" :default "Abbildung")
|
||||||
("es" :default "Figura")
|
("es" :default "Figura")
|
||||||
("ja" :html "図" :utf-8 "図")
|
("ja" :html "図" :utf-8 "図")
|
||||||
|
("no" :default "Illustrasjon")
|
||||||
|
("nb" :default "Illustrasjon")
|
||||||
|
("nn" :default "Illustrasjon")
|
||||||
|
("sv" :default "Illustration")
|
||||||
("zh-CN" :html "图" :utf-8 "图"))
|
("zh-CN" :html "图" :utf-8 "图"))
|
||||||
("Figure %d:"
|
("Figure %d:"
|
||||||
|
("da" :default "Figur %d")
|
||||||
("de" :default "Abbildung %d:")
|
("de" :default "Abbildung %d:")
|
||||||
("es" :default "Figura %d:")
|
("es" :default "Figura %d:")
|
||||||
("fr" :default "Figure %d :" :html "Figure %d :")
|
("fr" :default "Figure %d :" :html "Figure %d :")
|
||||||
("ja" :html "図%d: " :utf-8 "図%d: ")
|
("ja" :html "図%d: " :utf-8 "図%d: ")
|
||||||
|
("no" :default "Illustrasjon %d")
|
||||||
|
("nb" :default "Illustrasjon %d")
|
||||||
|
("nn" :default "Illustrasjon %d")
|
||||||
|
("sv" :default "Illustration %d")
|
||||||
("zh-CN" :html "图%d " :utf-8 "图%d "))
|
("zh-CN" :html "图%d " :utf-8 "图%d "))
|
||||||
("Footnotes"
|
("Footnotes"
|
||||||
("ca" :html "Peus de pàgina")
|
("ca" :html "Peus de pàgina")
|
||||||
|
@ -5303,21 +5366,33 @@ them."
|
||||||
("zh-CN" :html "脚注" :utf-8 "脚注")
|
("zh-CN" :html "脚注" :utf-8 "脚注")
|
||||||
("zh-TW" :html "腳註" :utf-8 "腳註"))
|
("zh-TW" :html "腳註" :utf-8 "腳註"))
|
||||||
("List of Listings"
|
("List of Listings"
|
||||||
|
("da" :default "Programmer")
|
||||||
("de" :default "Programmauflistungsverzeichnis")
|
("de" :default "Programmauflistungsverzeichnis")
|
||||||
("es" :default "Indice de Listados de programas")
|
("es" :default "Indice de Listados de programas")
|
||||||
("fr" :default "Liste des programmes")
|
("fr" :default "Liste des programmes")
|
||||||
|
("no" :default "Dataprogrammer")
|
||||||
|
("nb" :default "Dataprogrammer")
|
||||||
("zh-CN" :html "代码目录" :utf-8 "代码目录"))
|
("zh-CN" :html "代码目录" :utf-8 "代码目录"))
|
||||||
("List of Tables"
|
("List of Tables"
|
||||||
|
("da" :default "Tabeller")
|
||||||
("de" :default "Tabellenverzeichnis")
|
("de" :default "Tabellenverzeichnis")
|
||||||
("es" :default "Indice de tablas")
|
("es" :default "Indice de tablas")
|
||||||
("fr" :default "Liste des tableaux")
|
("fr" :default "Liste des tableaux")
|
||||||
|
("no" :default "Tabeller")
|
||||||
|
("nb" :default "Tabeller")
|
||||||
|
("nn" :default "Tabeller")
|
||||||
|
("sv" :default "Tabeller")
|
||||||
("zh-CN" :html "表格目录" :utf-8 "表格目录"))
|
("zh-CN" :html "表格目录" :utf-8 "表格目录"))
|
||||||
("Listing %d:"
|
("Listing %d:"
|
||||||
|
("da" :default "Program %d")
|
||||||
("de" :default "Programmlisting %d")
|
("de" :default "Programmlisting %d")
|
||||||
("es" :default "Listado de programa %d")
|
("es" :default "Listado de programa %d")
|
||||||
("fr" :default "Programme %d :" :html "Programme %d :")
|
("fr" :default "Programme %d :" :html "Programme %d :")
|
||||||
|
("no" :default "Dataprogram")
|
||||||
|
("nb" :default "Dataprogram")
|
||||||
("zh-CN" :html "代码%d " :utf-8 "代码%d "))
|
("zh-CN" :html "代码%d " :utf-8 "代码%d "))
|
||||||
("See section %s"
|
("See section %s"
|
||||||
|
("da" :default "jævnfør afsnit %s")
|
||||||
("de" :default "siehe Abschnitt %s")
|
("de" :default "siehe Abschnitt %s")
|
||||||
("es" :default "vea seccion %s")
|
("es" :default "vea seccion %s")
|
||||||
("fr" :default "cf. section %s")
|
("fr" :default "cf. section %s")
|
||||||
|
@ -5329,10 +5404,15 @@ them."
|
||||||
("ja" :html "表" :utf-8 "表")
|
("ja" :html "表" :utf-8 "表")
|
||||||
("zh-CN" :html "表" :utf-8 "表"))
|
("zh-CN" :html "表" :utf-8 "表"))
|
||||||
("Table %d:"
|
("Table %d:"
|
||||||
|
("da" :default "Tabel %d")
|
||||||
("de" :default "Tabelle %d")
|
("de" :default "Tabelle %d")
|
||||||
("es" :default "Tabla %d")
|
("es" :default "Tabla %d")
|
||||||
("fr" :default "Tableau %d :")
|
("fr" :default "Tableau %d :")
|
||||||
("ja" :html "表%d:" :utf-8 "表%d:")
|
("ja" :html "表%d:" :utf-8 "表%d:")
|
||||||
|
("no" :default "Tabell %d")
|
||||||
|
("nb" :default "Tabell %d")
|
||||||
|
("nn" :default "Tabell %d")
|
||||||
|
("sv" :default "Tabell %d")
|
||||||
("zh-CN" :html "表%d " :utf-8 "表%d "))
|
("zh-CN" :html "表%d " :utf-8 "表%d "))
|
||||||
("Table of Contents"
|
("Table of Contents"
|
||||||
("ca" :html "Índex")
|
("ca" :html "Índex")
|
||||||
|
@ -5359,6 +5439,7 @@ them."
|
||||||
("zh-CN" :html "目录" :utf-8 "目录")
|
("zh-CN" :html "目录" :utf-8 "目录")
|
||||||
("zh-TW" :html "目錄" :utf-8 "目錄"))
|
("zh-TW" :html "目錄" :utf-8 "目錄"))
|
||||||
("Unknown reference"
|
("Unknown reference"
|
||||||
|
("da" :default "ukendt reference")
|
||||||
("de" :default "Unbekannter Verweis")
|
("de" :default "Unbekannter Verweis")
|
||||||
("es" :default "referencia desconocida")
|
("es" :default "referencia desconocida")
|
||||||
("fr" :ascii "Destination inconnue" :default "Référence inconnue")
|
("fr" :ascii "Destination inconnue" :default "Référence inconnue")
|
||||||
|
|
Loading…
Reference in New Issue