From: Fletcher T. Penney Date: Sun, 19 Mar 2017 16:54:04 +0000 (-0400) Subject: FIXED: Update Spanish, update Spanish test suite, add languages to help screen X-Git-Tag: 6.0.0-rc2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8801a422cdb1c8641281ecd3d0a1d982839618e;p=multimarkdown FIXED: Update Spanish, update Spanish test suite, add languages to help screen --- diff --git a/Sources/libMultiMarkdown/writer.c b/Sources/libMultiMarkdown/writer.c index 2d3eb97..85d5943 100644 --- a/Sources/libMultiMarkdown/writer.c +++ b/Sources/libMultiMarkdown/writer.c @@ -1510,6 +1510,9 @@ void process_metadata_stack(mmd_engine * e, scratch_pad * scratch) { if (strcmp(temp_char, "de") == 0) { scratch->language = LC_DE; scratch->quotes_lang = GERMAN; + } else if (strcmp(temp_char, "es") == 0) { + scratch->language = LC_ES; + scratch->quotes_lang = ENGLISH; } else if (strcmp(temp_char, "fr") == 0) { scratch->language = LC_FR; scratch->quotes_lang = FRENCH; diff --git a/Sources/multimarkdown/main.c b/Sources/multimarkdown/main.c index 61fbf64..113e077 100644 --- a/Sources/multimarkdown/main.c +++ b/Sources/multimarkdown/main.c @@ -168,7 +168,7 @@ int main(int argc, char** argv) { a_rem4 = arg_rem("", ""), - a_lang = arg_str0("l", "lang", "LANG", "language localization, LANG = en|es|de"), + a_lang = arg_str0("l", "lang", "LANG", "language/smart quote localization, LANG = en|es|de|fr|nl|sv"), a_end = arg_end(20), }; diff --git a/tests/MMD6Tests/Spanish.fodt b/tests/MMD6Tests/Spanish.fodt new file mode 100644 index 0000000..f140e16 --- /dev/null +++ b/tests/MMD6Tests/Spanish.fodt @@ -0,0 +1,298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bibliography + + + + Spanish + + + +‘foo’ + +“foo” + +foo’s + +foo — bar + +foo – bar + +5 + +foo… + +foo + +foo + + + diff --git a/tests/MMD6Tests/Spanish.html b/tests/MMD6Tests/Spanish.html new file mode 100644 index 0000000..1b49bc3 --- /dev/null +++ b/tests/MMD6Tests/Spanish.html @@ -0,0 +1,52 @@ + + + + + Spanish + + + + +

‘foo’

+ +

“foo”

+ +

foo’s

+ +

foo — bar

+ +

foo – bar

+ +

5

+ +

foo…

+ +

[1]

+ +

[1]

+ +
+
+
    + +
  1. +

    foo  ↩

    +
  2. + +
+
+ +
+
+
    + +
  1. +

    foo  ↩

    +
  2. + +
+
+ + + + diff --git a/tests/MMD6Tests/Spanish.htmlc b/tests/MMD6Tests/Spanish.htmlc new file mode 100644 index 0000000..eba1811 --- /dev/null +++ b/tests/MMD6Tests/Spanish.htmlc @@ -0,0 +1,21 @@ +

Title: Spanish +latex config: article +language: es

+ +

'foo'

+ +

"foo"

+ +

foo's

+ +

foo --- bar

+ +

foo -- bar

+ +

5

+ +

foo...

+ +

[^foo]

+ +

#bar

diff --git a/tests/MMD6Tests/Spanish.tex b/tests/MMD6Tests/Spanish.tex new file mode 100644 index 0000000..fe8e732 --- /dev/null +++ b/tests/MMD6Tests/Spanish.tex @@ -0,0 +1,31 @@ +\input{mmd6-article-leader} +\def\mytitle{Spanish} +\def\language{es} +\input{mmd6-article-begin} + +`foo' + +``foo'' + +foo's + +foo --- bar + +foo -- bar + +5 + +foo{\ldots} + +\footnote{foo} + +~\citep{bar} + +\begin{thebibliography}{0} + +\bibitem{bar} +foo +\end{thebibliography} + +\input{mmd6-article-footer} +\end{document} diff --git a/tests/MMD6Tests/Spanish.text b/tests/MMD6Tests/Spanish.text new file mode 100644 index 0000000..a5b7d27 --- /dev/null +++ b/tests/MMD6Tests/Spanish.text @@ -0,0 +1,23 @@ +Title: Spanish +latex config: article +language: es + +'foo' + +"foo" + +foo's + +foo --- bar + +foo -- bar + +5 + +foo... + +[^foo] + +[#bar] + +[#bar]: foo