View Single Post
Old Today, 08:55 AM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,979
Karma: 6361444
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Doitsu View Post
Remember h* selections

Make Sigil remember the last [h*] selection. For example if you want to add multiple h2 tags, Sigil should change the button image to h2 after the first h2 selection and keep that setting until Sigil is restarted.
Can't you just use a clip for each of the h1-h6 elements you use a lot? Clips are really the fastest way to add tags. I have not used that multi-button menu in literally years once I set common tags as clips.

Quote:
Allow advanced users to customize the book language dropdown list

Most book producers probably only use the usual EFIGS languages and their local language, but the language list is very long and contains several languages that are highly unlikely to be ever used in an epub. For example, Middle High German.

I realize that creating another settings dialog would be a lot of work, but you could have Sigil check for a lang_codes ini entry that advanced users would have to manually add.
For example:

Code:
lang_codes = en-US, fr-FR, it-IT, de-DE, es-ES
Sigil would then only display the languages defined via lang_codes, provided that all language codes are valid.

Alternatively, you could reorder the language list to prioritize languages the app is fully translated for.

Chinese (China) (zh-CN)
French (fr)
German (de)
Korean (ko)
Polish (pl)
Portuguese (Brazil) (pt-BR)
Russian (ru)
Serbian (sr)
Spanish (es)
Ukrainian (Ukraine) (uk-UA)
The epub spec itself specifies the user can use any of the language codes in that iso list. So restricting it to commonly used languages would place out-of-spec limits on Sigil but the spec says nothing about the order they are presented in or a user override of that list.

Your idea of a environment variable to allow the user to specify the initial order or somehow force the list to be limited might be a good approach.
Let's see what others think.
KevinH is offline   Reply With Quote