michal-h21 / tex4ebook

Converter from LaTeX to ebook formats (epub, mobi). Using tex4ht and texlua scripts.
314 stars 33 forks source link

Missing language codes #22

Open keinstein opened 8 years ago

keinstein commented 8 years ago

Hi,

just scrolling through your source code, I saw that there are some missing language codes. As (X)HTML refers to ISO 639-1 the missing codes can be found in the corresponding table (e.g. at https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). There you get the following codes:

• gd for scottish

michal-h21 commented 8 years ago

Thanks, I've added language codes for missing babel languages, and also new configuration, \Configure{DocumentLanguage}, so the language code can be specified in the .cfg file, if the automatic way doesn't work correctly.