View Single Post
Old 07-10-2018, 02:47 AM   #35
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 846
Karma: 3341026
Join Date: Jan 2017
Location: Poland
Device: Various
slowsmile
Quote:
Originally Posted by slowsmile View Post

Ad prefs['add_chapter_template'] = 'Chapter'

In the plugin, the Add heading name template textbox is initially initialized to 'Chapter' in the dialog itself and is re-populated later if there is an appropriate existing value in prefs. After the OK button is pressed the user-entered dialog value is then saved to prefs. The main reason I initialize this option to either 'Chapter' for file group selections or 'Preface' for single file selections is to give the plugin user a helpful indication of what should be put into the textbox. Perhaps I should've initialized it to "e.g. Chapter" or "e.g. Preface" but I think that looks a bit ugly.
I understand your idea.
But think about users from other countries who prefer to have instead of "Chapter" e.g. "Kapitel", "Rozdział" or "Глава".
My suggestion SAVES the typed word in Template input box when selecting multiple files, and "Preface" is used when selecting only one file.


Ad "cleaning" options.SUFFIX_CHOICE.

You're right, but not quite.
For template "Chapter" all works.
Change template to other word (write something else there).
Then the word from the template is added, despite choosing "Use numbered headings only".

Code:
<h1>Blahblahblah ONE</h1>
Attached Thumbnails
Click image for larger version

Name:	rework-issue.png
Views:	524
Size:	14.7 KB
ID:	164973  
BeckyEbook is offline   Reply With Quote