Commit Graph

222 Commits

Author SHA1 Message Date
Günter Milde
e5435cd61e Update language support documentation and comments. 2019-04-12 18:08:17 +02:00
Günter Milde
d0665aeefe Japanese (platex) works fine with fontenc.
While not required for hyphenation, using T1 as default font encoding
helps with text in Latin script (pre-composed accented characters,
Nordic letters "eth" and "thorn").
2019-04-12 18:08:17 +02:00
Günter Milde
2efe99c33d Improve and document use of Thai language. 2019-04-09 17:13:44 +02:00
Günter Milde
76369132ac Do not change input encoding globally for Kazakh language.
The global change
* is no longer required since the last fixes to the "textcyrillic" feature,
* is wrong for documents with only parts in Kazakh.
2019-04-06 18:21:00 +02:00
Günter Milde
29c5139275 update lib/languages
* add workarounds for problematic definitions in Albanian and Lithuanian

* Babel-Serbian is fixed since version 3.0 (2019-01-12).
2019-04-06 18:19:07 +02:00
Günter Milde
caf9db6936 Remove obsolete comment. 2019-04-03 08:40:29 +02:00
Günter Milde
b724b4f32f Do not force the use of the HE8 font encoding for Hebrew.
While HE8 provides more characters and prevents use of bitmap fonts,
forcing its use may break older installations.

The dedicated test file 012_hebrew_he_HE8.lyx provides an
example for use of HE8 encoded fonts with babel-hebrew.
2019-04-02 13:21:38 +02:00
Günter Milde
f0b326a9f4 Comprehensive language test document and some more fixes.
Work around or document language clashes and limitations.
2019-03-27 17:49:08 +01:00
Günter Milde
32b47e975e Fix settings for Hebrew with 8-bit TeX fonts. 2019-03-27 17:09:12 +01:00
Günter Milde
1361f1a45f "AsBabelOptions" no longer required. Part1.
With the re-orgianization and opening of the Babel package by Javier Bezos
(version 3.9 released March 2013), "contributed" language definitions are
also recognized if the language is given as global option.

If there is no objection or regression in tests,
Part 2 will remove the hard-coded part of AsBabelOptions.
2019-03-27 16:53:23 +01:00
Juergen Spitzmueller
ebd7a1a22a Support for the Malayalam language
Patch by Joice Joseph
2019-03-10 10:21:59 +01:00
Günter Milde
1c57fc31aa Minor documentation fix. 2019-02-28 23:01:14 +01:00
Juergen Spitzmueller
e730234e57 Add date-related info insets
With this commit, info insets leave the dark backstage room of an opaque
and quite hidden dev-only feature and come frontstage.

In the UI, they present themselves as "Fields" since this is what people
know from word processors. Other user-related fields that could be
implemented next: time, user name (I plan to do that for 2.4).

Since this supersedes date-insert, I removed Insert > Date from
the menu and propose to ditch date-insert and the corresponding rc.

The lyx2lyx reversion routine has lots of room for improvement and
attractive tasks for pythons (file timestamp, switch of localization).
Please feel invited!

This is a file format change.
2018-08-05 10:01:36 +02:00
Juergen Spitzmueller
b12ea3b731 Fix austrian language code\n\nCandidate for stable. 2018-07-25 14:59:21 +02:00
Juergen Spitzmueller
9b76237bfe farsi needs LAE encoding as well 2018-07-21 16:00:40 +02:00
Juergen Spitzmueller
26ea1e1496 Align fontenc with document fonts
Following a request by Günter, we consider the document fonts (only rm
for now) when selecting an appropriate font encoding.

See #9741

The new default font encoding setting "auto" does

* consider the font encoding needed by the language(s), which can now
  have fallback alternatives
* Consider which font encoding is provided by the document font

Thus, cm now will result in OT1 fontenc, if the language can deal with
that.

The font_enc pref is ditched: it is no longer needed.

The automatism is still very basic and is subject to extension.

File format and prefs format change.
2018-04-22 19:06:46 +02:00
Juergen Spitzmueller
2ed1012ead Document Provides in languages 2018-04-22 09:07:31 +02:00
Juergen Spitzmueller
02d37932d0 \textcyr -> \textcyrillic
Use the command as defined by Babel. This allows us to use the (more
advanced) Babel command if provided instead of rolling our own.

I add a dummy file format change in case it turns out we need to
do something here for old documents (e.g. with user preamble definitions)
2018-04-21 16:28:15 +02:00
Juergen Spitzmueller
71f0dd3a7f Add Provides tag to languages
This allows to specify macros that are provided by specific (Babel)
languages (such as \textgreek)
2018-04-21 15:47:39 +02:00
Juergen Spitzmueller
931f87f508 Introduce "inherit" encoding for latex_language
This gets rid of the hardcoded latin1 encoding for verbatim. Instead,
verbatim now inherits the encoding from the context, which is what is
actually wanted here.

Fixes: #9012, #9258
2017-12-24 17:10:42 +01:00
Juergen Spitzmueller
7e121117bb Vietnamese no longer requires any special handling.
It is a normal babel support package.
2017-08-13 11:53:41 +02:00
Juergen Spitzmueller
048c3fd429 Babel option for Vietnamese is called "vietnamese"
The renaming happened in 2013. Contrary to what is stated in the
babel-vietnamese manual, option "vietnam" does not work anymore.

Also, the special care is note needed anymore, since language options
are not hardcoded anymore in babel.

Fixes: #10743
2017-08-13 11:52:57 +02:00
Günter Milde
087523f87a Revert 809b8b62 (Add FontEncoding to language descriptions).
This breaks some existing documents and should be done
together with introducing the new fontenc="auto" setting (ticket #9741).
2017-01-16 12:38:06 +01:00
Günter Milde
809b8b62a4 Add FontEncoding to language descriptions.
Add FontEncoding tag for all languages with 8-bit hyphenation patterns
requiring a specific font encoding.
No FontEncoding tag means the language is either not supported with
Babel or accepts both, OT1 and standard text encodings.

Prerequisite for fontenc="auto" (ticket #9741)
2017-01-14 22:43:37 +01:00
Juergen Spitzmueller
89ce0c9069 Support for CJK quotation marks
File format change

Fixes: #2712
2016-12-26 14:03:48 +01:00
Juergen Spitzmueller
237193f8a8 Some new quote styles
* b    `british'    (``inner quotation'')
* w    >>swedishg>> ('inner quotation')   ["g" = Guillemets]
* f    <<french>>   (``inner quotation'')
* i    <<frenchin>> (<<inner quotation>>) ["in" = Imprimerie Nationale]
* r    <<russian>>  (,,inner quotation``)

Rename "french" to "swiss"

Also rename "single/double" to "secondary/primary" ("inner/outer" in
the UI) and "left/right" to "opening/closing". Note that the inset
identifier string is left as is ("s/d" and "l/r")
2016-12-24 14:27:00 +01:00
Juergen Spitzmueller
1ed70d10fd Add "Plain" quotation mark style
File format change
2016-12-21 15:17:30 +01:00
Juergen Spitzmueller
e5386ce473 Fix Polyglossia options for serbian
Script value is uppercase.
2016-11-21 18:57:04 +01:00
Uwe Stöhr
e7e6d07e84 encodings: use correct encoding "latin7" for ISO 8859-13
This fixes bug #10474 properly, thanks Günter
2016-11-08 00:04:02 +01:00
Juergen Spitzmueller
3374b8548b Fix usage of multiple varieties of the same polyglossia language.
1. We must always output all (diverging) options, including
   default options; if not, default options might get overwritten.

2. Do not output options in \setotherlanguage, since we might have
   multiple "other languages" varieties from the same language (such
   as naustrian, nswissgerman). And the options are output for the
   language switches anyway.

Hence, LaTeXFeatures::getPolyglossiaLanguages() does not have to record
varieties. This was not done correctly anyway, since the map allowed
for one entry per language only.
2016-11-02 17:07:49 +01:00
Juergen Spitzmueller
24066805af Enable polyglossia support for Swiss German 2016-11-01 18:08:33 +01:00
Uwe Stöhr
0af72e23fd languages: use correct encoding for Lithuanian
fixes bug #10474
2016-11-01 16:08:33 +01:00
Uwe Stöhr
87c00f3383 add support for Urdu and Syriac
- fileformat change
- I could not update the tex2lyx testfiles because of bug #10440 (there is now a probable fix)
2016-10-28 00:21:58 +02:00
Uwe Stöhr
d9c52c7a3f support for Amharic, Asturian, Kannada and Khmer
- fileformat change
- I could not update the tex2lyx test files because of bug #10440
- maybe the lyx2lyx routine could be improved but since a document can also begin with another layout than "Standard" I could not use the lyx2lyx function put_cmd_in_ert
2016-10-22 15:33:59 +02:00
Uwe Stöhr
f179173e42 support for the languages Bosnian, Friulian, Macedonian, Piedmontese and Romansh
- file format change
- note that I could not update the tex2lyx test files because of bug #10440
2016-10-16 15:33:23 +02:00
Günter Milde
f1fa051422 update documentation in lib/languages 2015-10-28 10:16:41 +01:00
Scott Kostyshak
4f2536afcf Correct PolyglossiaOpts for Serbian
PolyglossiaOpts are case-sensitive so "latin" must be changed to
"Latin". Without this change, compiling examples/sr/Braille.lyx
with LuaTeX and system fonts gives the following error:

  Package Polyglossia Error: Unknown script `latin' for Serbian
  language
2015-10-25 00:12:26 -04:00
Scott Kostyshak
27ce44df4f FontEncoding format is "utf8" instead of "utf-8"
Otherwise LyX does not recognized the encoding.

This is a follow-up of commit f7518565.
2015-07-10 20:20:46 -04:00
Günter Milde
f7518565b6 Apply #9652: fixes for the lib/language file.
Add font encodings auto-set by babel.

Set font encoding for georgian to the babel default.

Remove InternalEncoding from languages that use a font encoding
compatible to T1.

Change (LaTeX input) encoding for Serbian (cyrillic) and Romanian.

See #9652 for details.
2015-07-09 18:43:19 +02:00
Jean-Marc Lasgouttes
88609b3984 Improve list of available languages for UI l10n.
Add a new tag HasGuiSupport to language file. Add it for all l10ns
that we currently ship. The po files that are unused are not currently
tagged as available, but this could be done, since the code later
checks that the translation is actually there.

This new information is used in GuiPrefs when populating the language
combox.

The new scheme implies that adding a new language is now a two-step
process:
* the language code has to be added to po/LINGUAS, as before;
* one of the entries of the lib/language file has to be selected as
  reference and be given the "HasGuiSupport true" property.
2015-05-21 10:48:38 +02:00
Juergen Spitzmueller
673217593e Update comment. 2015-05-16 13:48:53 +02:00
Uwe Stöhr
c6b17b685a support for Georgian
add support to set Georgian as document language, fileformat change
2015-04-06 06:00:11 +02:00
Juergen Spitzmueller
fb6665becb Comment out FontEncoding for Hebrew
This needs a specific loading order, which is handled by Hebrew babel itself.
2015-02-19 10:37:05 +01:00
Juergen Spitzmueller
30ccfaade6 More documentation on InternalEncoding 2015-02-16 11:17:39 +01:00
Juergen Spitzmueller
600a84471b Babel supports ancient Greek 2015-01-25 10:00:00 +01:00
Juergen Spitzmueller
d7cf6ca71b Add proper font encoding to Russian and Ukrainian 2015-01-24 16:25:21 +01:00
Juergen Spitzmueller
16c33b5f6e Move font encoding information to languages. 2015-01-24 14:02:16 +01:00
Juergen Spitzmueller
0c3b88e3cb Support for Swiss German (old spelling) 2014-07-05 13:38:55 +02:00
Juergen Spitzmueller
bdd2635ec0 Some comments 2014-07-02 14:44:38 +02:00
Juergen Spitzmueller
ac2d4dd7ba Babel now supports Swiss German 2014-07-02 13:19:07 +02:00
Juergen Spitzmueller
4ab4cfa690 Polyglossia now supports Austrian German 2014-07-02 13:14:11 +02:00
Vincent van Ravesteijn
cf9c7ad108 Disable the languages Urdu and Syriac
At the moment these languages are unusable because the characters on
screen do not appear in their contextual forms.
2014-04-09 18:29:56 +02:00
Vincent van Ravesteijn
2c6264d0b0 Fix the languages entry for Urdu and Syriac 2014-04-09 18:29:52 +02:00
Vincent van Ravesteijn
daed22c4d6 Fix language code for Traditional Chinese 2013-06-02 15:32:36 +02:00
Uwe Stöhr
ea2d5947e9 support to set Tibetan as document language
- polyglossia supports http://en.wikipedia.org/wiki/Standard_Tibetan so we can support it too
- fileformat change
2013-05-28 23:40:17 +02:00
Uwe Stöhr
d25afed517 languages: whitespace only 2013-04-09 23:08:15 +02:00
Uwe Stöhr
90d1623343 languages: use a usable encoding for Kazakh
- we found out that Kazakh is currently not supported by babel nor polyglossia so that using Kazakh as language will break the compilation, Günter proposed therefore this encoding change until Kazakh is supported.
2013-04-09 22:04:51 +02:00
Uwe Stöhr
66b1d0b1a5 languages: distinguish between Serbian scripts
- fixes bug #8628
2013-04-08 23:39:10 +02:00
Uwe Stöhr
d4c2fce88c languages: fix support for Serbian Cyrillic
- there is a Serbian Cyrillic support file for babel available. Its support works the same as for Lithuanian, Belarusian, etc.
- fixes bug #8590
2013-03-20 00:20:27 +01:00
Uwe Stöhr
5619ebeda2 languages: update support for Kazakh
as discussed on the list, as there is not support for Kazakh in babel we must assure that the T2A fontenc is loaded
2013-03-19 23:53:17 +01:00
Uwe Stöhr
fda657b03c languages: Kazakh is not supported by babel 2013-03-15 00:19:04 +01:00
Uwe Stöhr
004dbb0210 languages: fix support for Belarusian
Belarusian is not directly supported by babel -> we need to load it directly with babel, fixes bug #8593
2013-03-14 22:45:54 +01:00
Juergen Spitzmueller
05ec893d07 typo 2013-02-19 09:17:35 +01:00
Juergen Spitzmueller
c4899948d4 Fix font encoding with japanese
Since japanese omits fontencoding, the encoding of latin text in fact is OT1.

Candidate for branch, but I would welcome Koji's input.
2013-02-19 08:58:45 +01:00
Julien Rioux
9dd1b7c578 Use the LyX name of encodings instead of the LaTeX names.
- Use the LyX name of encodings instead of the LaTeX names.
  The LyX name must be unique, while the name used by LaTeX
  not necessarily, e.g. different packages might implement
  support for the same encoding.

- Rename koi8 to koi8-r, so that the LyX and LaTeX names match.

- Rename euc-jp-plain to euc-jp-platex, jis-plain to jis-platex
  and shift-jis-plain to shift-jis-platex.

- Add utf8-platex encoding (fixes #8408).

LyX file format incremented to 463.
2013-02-18 23:52:42 +01:00
Juergen Spitzmueller
73fc99fb98 arabi requires the language option to be passed to babel directly. Candidate for branch 2012-07-23 11:03:25 +02:00
Juergen Spitzmueller
0b4a70a018 deactivate ~ in Basque, Estonian and Galician (bug #8265) 2012-07-18 13:01:10 +02:00
Juergen Spitzmueller
11ac5b78f3 Document QuoteStyle options 2012-07-02 10:50:06 +02:00
Juergen Spitzmueller
837869452a Add quote style information to languages 2012-07-01 11:25:52 +02:00
Uwe Stöhr
6a7a8d2e37 polyglossia doesn't support Kurmanji 2012-06-25 22:02:00 +02:00
Uwe Stöhr
d37bb54e7b - language: Kurmanji is since 2009 also supported by babel; no fileformat change necessary because Kurmanji is already covered by fileformat 432
- tex2lyx/Preamble.cpp: babel support for Kurmanji and remove comment residues of ArmTeX whose support was removed by fileformat 433
2012-06-23 18:56:10 +02:00
Uwe Stöhr
1ea2abc77f drop support for ArmTeX as its non-standard armscii8 encoding was quite unusable in real life, use polyglossia/XeTeX instead as clean solution via Unicode; fileformat change; fixes the second part of bug #8026 2012-06-22 01:12:43 +02:00
Juergen Spitzmueller
f71a55a279 some less language hardcoding 2012-06-09 11:32:34 +02:00
Uwe Stöhr
7eca5d94d1 - support a bunch of new languages (fileformat change)
- tex2lyx support for
  - fontspec fonts
  - polyglossia
2012-06-08 02:37:36 +02:00
Uwe Stöhr
47f70bd913 languages: fix and complete language codes 2012-06-07 16:57:56 +02:00
Uwe Stöhr
b4aaa1b5bb languages: add missing language codes, fixes bug #8183 2012-06-03 23:49:24 +02:00
Uwe Stöhr
70cc99c9a4 languages: add some encodings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40716 a592a061-630c-0410-9148-cb99ea01b6c8
2012-02-10 23:31:58 +00:00
Uwe Stöhr
af7b1c2d39 languages: babel does not support Kurmanji
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40687 a592a061-630c-0410-9148-cb99ea01b6c8
2012-01-30 00:45:38 +00:00
Uwe Stöhr
fe8c185a6e support for Australian and Newzealand as document language; fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40452 a592a061-630c-0410-9148-cb99ea01b6c8
2011-12-08 23:58:30 +00:00
Jean-Marc Lasgouttes
369d32885e Fix bug #2005: Lyx Inserted Graphics Scale Error
xkeyval fixes the incompatibility between graphicx.sty and babel/turkish.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39190 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-22 09:53:44 +00:00
Richard Heck
9b4a91469a Changes to lib/languages from Gunter. Kill spruious whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38966 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-06 12:30:26 +00:00
Georg Baum
acd57ccaaf Fix language handling in tex2lyx:
- Add missing babel synonyms (taken from a standard TeXLive 2010 install).
  Some synonyms might still be missing (if they are defined not by babel
  itself, but additional packages). Adding these is now simple: Only
  known_languages and known_coded_languages need to be touched.
- Translate babel language name arguments of \foreignlanguage and
  \selectlanguage to LyX names.
- Translate second argument of \foreignlanguage to LyX.
- Cleanup mixed language names in the preamble parser: Now all checks are
  done with LyX names, not a mix of babel and LyX names. This sets correct
  quotes even if the language as given as an alias.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37188 a592a061-630c-0410-9148-cb99ea01b6c8
2011-01-12 21:04:39 +00:00
Jürgen Spitzmüller
d79902fe7d * languages: remove country code from farsi definition, since the aspell dictionary doesn't use it either (fix bug 7171).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36858 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-13 07:15:54 +00:00
Jürgen Spitzmüller
0ac943cf13 * languages: correct Norwegian Gui strings as advised by Ingar Pareliussen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36440 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-23 10:52:59 +00:00
Jürgen Spitzmüller
1aa5a0d1f1 Introduce PolyglossiaName and PolyglossiaOpts.
Not yet functional.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36312 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 11:07:43 +00:00
Jürgen Spitzmüller
5b8598b48d * languages: add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36296 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 13:41:38 +00:00
Jürgen Spitzmüller
cc5dd37a2a Introduce a new Language option "AsBabelOptions" that specifies whether a language requires to be passed to babel itself (instead of globally to the class).
This allows us to remove some ugly hardcoding of languages in the source.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 10:35:35 +00:00
Jürgen Spitzmüller
12c7e7dde3 * add PreBabelPreamble to Language definition (fixes #4786).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 09:54:24 +00:00
Jürgen Spitzmüller
148f2d648c The languages file rewrite.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 17:25:03 +00:00
Uwe Stöhr
6c8c2ec2d3 revert r35565 as discussed in http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg162280.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35583 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-09 16:11:41 +00:00
Uwe Stöhr
bb56d02456 languages: fix #6932 as discussed in this thread: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg83171.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35565 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-06 00:00:24 +00:00
Jürgen Spitzmüller
cbb60f2aa9 * lib/languages: simplify polytonic Greek definition. Patch by G. Milde (bug #6456)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34099 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 09:15:55 +00:00
Uwe Stöhr
879ed8e2ed fileformat change:
- support for Turkmen

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34000 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-01 00:40:19 +00:00
Jürgen Spitzmüller
112a909fbe revert r33327.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33331 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-05 09:25:49 +00:00
Kornel Benko
2a69d4e4f8 Change, so that lyx_pot.py is extracting this string too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33327 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-04 19:40:51 +00:00
Jürgen Spitzmüller
4506ec88ab * Add support for aspell language varieties.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33085 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-18 17:02:05 +00:00
Jürgen Spitzmüller
95466fff15 * revert r32450 which broke polytonic Greek.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-16 09:52:42 +00:00
Jürgen Spitzmüller
28ce123a18 Simplify the definition of multi-accented polytonic Greek, patch by Günter Milde.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32450 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-10 08:26:22 +00:00
Uwe Stöhr
4beb1a5546 languages: fix spelling (can also go to branch)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31657 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-18 14:30:33 +00:00
Jürgen Spitzmüller
87b701a06b * attempt to fix polytonic Greek (with mutli-accents) [bug 5976].
* add extended Greek chars to unicodesymbols [bug 4997].

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30619 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 06:19:25 +00:00