Skip to content

Commit 93c02ad

Browse files
committed
Fix accents in a JSON snippet
1 parent 22d16d2 commit 93c02ad

2 files changed

Lines changed: 15 additions & 23 deletions

File tree

guide/ch_skycultures.tex

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -611,34 +611,25 @@ \subsection{Names of Stars, Planets and Nonstellar Objects}
611611
Many cultures have defined their own names for stars, planets and even a few deep-sky objects bright enough to be seen with the unaided eye.
612612
The \jtag{common\_names} dict in a skyculture file \file{index.json} contains entries of arrays tagged with HIP catalog numbers or other names.
613613

614-
As example, we show a part of the Samoan skyculture\footnote{Sorry for the misspelling. Our typesetter does not like diacritics. The JSON file is correct!}:
614+
As example, we show a part of the Samoan skyculture:
615615
\begin{jsonfile}[\scriptsize]
616-
"common_names": {
617-
"HIP 32349": [{"english": "Gliding Star", "native": "Fetusolonu'u"}],
616+
"common_names": {
617+
"HIP 32349": [{"english": "Gliding Star", "native": "%(*Fētūsolonuʻu*)"}],
618618
"HIP 68702": [{"english": "Mea", "native": "Mea"}],
619619
"HIP 71683": [{"english": "Filo", "native": "Filo"}],
620-
"M45": [{"english": "Face of Li'i", "native": "MataliIi"}],
620+
"M45": [{"english": "Face of %(*Liʻi*)", "native": "%(*Matāliʻi*)"}],
621621
"NGC2055": [{"english": "Pale Cloud", "native": "Aotea"}],
622622
"NGC292": [{"english": "Flying Cloud", "native": "Aolele"}],
623-
"NGC6093": [{"english": "Pae", "native": "Pae", "translators_comments": "Samoan Name"}],
624-
"NGC6121": [{"english": "Suga", "native": "Suga", "translators_comments": "Samoan Name"}],
623+
"NGC6093": [{"english": "Pae"}],
624+
"NGC6121": [{"english": "Suga"}],
625625
"NAME Earth": [{"english": "Earth", "native": "Lalolagi"}],
626-
"NAME Jupiter": [{"english": "Undying Mystery",
627-
"native": "Tupualegase",
628-
"translators_comments": "Native name of Jupiter in Samoan"}],
629-
"NAME Mars": [{"english": "Reddish Face/Surface",
630-
"native": "Matamemea",
631-
"translators_comments": "Native name of Mars in Samoan"}],
632-
"NAME Mercury": [{"english": "Brownish",
633-
"native": "Ta'elo",
634-
"translators_comments": "Native name of Mercury in Samoan"}],
635-
"NAME Moon": [{"english": "Moon", "native": "Masina"}],
636-
"NAME Saturn": [{"english": "Garland Star", "native": "Fetu'asoa",
637-
"translators_comments": "Native name of Saturn in Samoan"}],
638-
"NAME Sun": [{"english": "Sun", "native": "La"}],
639-
"NAME Venus": [{"english": "Morning Star / Forbidden Radiance",
640-
"native": "Tapu'itea",
641-
"translators_comments": "Native name of Venus in Samoan"}]
626+
"NAME Jupiter": [{"english": "Undying Mystery", "native": "%(*Tupualēgase*)"}],
627+
"NAME Mars": [{"english": "Reddish Face/Surface", "native": "Matamemea"}],
628+
"NAME Mercury": [{"english": "Brownish", "native": "Ta'elo"}],
629+
"NAME Moon": [{"english": "Moon", "native": "%(*Māsina*)"}],
630+
"NAME Saturn": [{"english": "Garland Star", "native": "%(*Fētūʻāsoa*)"}],
631+
"NAME Sun": [{"english": "Sun", "native": "%(*Lā*)"}],
632+
"NAME Venus": [{"english": "Morning Star / Forbidden Radiance", "native": "Tapu'itea"}]
642633
}
643634
\end{jsonfile}
644635

guide/structure.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@
259259
\lstnewenvironment{configfileScr}[1][\scriptsize]{\lstset{language=sh,basicstyle=\ttfamily#1,showstringspaces=false,%
260260
backgroundcolor=\color{black!5},frame=shadowbox,rulecolor=\color{blue},framerule=1pt}%
261261
}{}%
262-
\lstnewenvironment{jsonfile}[1][\small]{\lstset{inputencoding=utf8,language=json,basicstyle=\ttfamily#1,showstringspaces=false,%
262+
% The solution for escaping accented characters is from https://tex.stackexchange.com/a/24532
263+
\lstnewenvironment{jsonfile}[1][\small]{\lstset{inputencoding=utf8,escapeinside={\%(*}{*)},language=json,basicstyle=\ttfamily#1,showstringspaces=false,%
263264
backgroundcolor=\color{black!5},frame=shadowbox,rulecolor=\color{blue},framerule=1pt}%
264265
}{}%
265266
% Shows an HTML one-liner

0 commit comments

Comments
 (0)