04-29-2024, 12:43 PM | #181 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
If anyone else has downloaded the test builds or made their own builds from master and could test some of the new features listed in the first post in this thread, we would love to hear about it, good or bad.
|
04-29-2024, 01:31 PM | #182 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Also, I would love to hear people's thoughts on point 2 on the list:
2. Consider adding "Use Unicode" to Find & Replace Regex options (*UCP) It would involve adding a new item to the PullDown and then properly handling that option during search (it is one of the few regex options that must always be first in the regex code). So it shoudl not be difficult and we already have to update the Search Chapter in the Sigil user's guide to handle the new Search Where catagories just added. So thoughts anyone? Especially from non-english character set epub developers? Add it or rely on Saved Searches where adding the necessary regex code us be done easily once and recalled. Thanks. Last edited by KevinH; 04-29-2024 at 03:37 PM. |
Advert | |
|
04-29-2024, 04:09 PM | #183 | |
Addict
Posts: 389
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
For the new books, I suppose the need to find and replace unicode characters could come up at any time, but I haven't hit one yet. In these cases I'm mostly interested in (for example) finding and making readable some 0.2em sized set of footnotes so I have a chance of reading them without constantly changing text size on my reader. So I'm mostly concerned with css and tag names. Surprisingly, the old magazines and books have a lot of diacritic characters. Think Sax Rohmer and his fake Arabic transliterations! But if Tesseract gives me é or û, it is so far always a single character, not a multiple-character unicode grapheme. And if I use my compose key to type anything with an accent, it also comes out as a single character. But I suppose all this will change at some point. I had a look at this article, and it makes my head ache to see what I might have to start typing to get unicode matches. But I once thought that about plain old regex. And if I suddenly need it...well, nice to have it there. So just in terms of future-proofing, and since it seems not too hard, I would be in favour of adding the unicode support. |
|
04-29-2024, 04:44 PM | #184 |
Bibliophagist
Posts: 36,183
Karma: 145735366
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I tend to agree with @retiredbiker. I don't have much use for Unicode search replace at this time but there are some authors who love odd character names where it would come in useful.
|
04-30-2024, 12:44 PM | #185 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Since I heard no one against the idea, I have added "Unicode Property" to the RegexOptions pull down menu, and updated the Find Replace, Saved Search and Controls code to handle it.
This has now been pushed to master. I have also updated the first post of this thread to indicate the status of all of the open Feature Requests we have received and accepted so far. Given all of the new features, we have had to make a lot of additions to the strings to be translated. This will obviously require more work by our volunteer translators on Transifex. So even though we are not close to a new release, I have pushed the new base for translations (base.ts) to Sigil master. This will give translators a long lead time to translate all of the recent changes and to reach the new hurdle of 85% translated for inclusion into Sigil releases. Last edited by KevinH; 04-30-2024 at 04:00 PM. |
Advert | |
|
04-30-2024, 05:15 PM | #186 |
Guru
Posts: 703
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
I'm writing regarding the new "Selected Misc XML Files" option in the F&R window.
As far as I remember, Sigil never opened any files from the Misc folder in the Code View window. To open these files (if I have to) I usually use the "Open With" option, i.e. open in an external editor. Currently (with me), the option to search with "Selected Misc XML Files" simply does not work. I only noticed this today, when updating the Polish translation. |
04-30-2024, 06:24 PM | #187 | |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Quote:
Right now the code only recognizes the following media types for this search: Code:
QList <Resource *> BookBrowser::ValidSelectedMiscXMLResources() { QStringList mts = QStringList() << "application/ttml+xml" << "application/smil+xml" << "application/smil" << "application/pls+xml" << "application/oebps-page-map+xml" << "application/vnd.adobe-page-map+xml" << "application/adobe-page-template+xml" << "application/vnd.adobe-page-template+xml" << "application/xml" << "text/xml"; return ValidSelectedResourcesByMT(mts); } FWIW I have edited both adobe page map xml and smil media overlay before in Sigil. They should open and be editable just fine. Last edited by KevinH; 04-30-2024 at 08:31 PM. |
|
04-30-2024, 06:31 PM | #188 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Perhaps the issue is TabManager does not know about XMLResource files. I will look into changeing that.
|
04-30-2024, 07:05 PM | #189 |
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
@BeckyEbook
Okay fixed a couple of typos in FindReplace that stopped Misc XML files and JS files from being searchable, and added some missing headers in TabManager.cpp (that probably are not needed but to be safe). And fixed up a few things in MediaTypes that may confuse javascript and xml resource types. I have pushed all of this to master. To test I grabbed the epub3 test of Moby Dick with MediaOverlays. After opening, I selected the two smil files in BookBrowser and then fired up search to Selected MiscXML Files and then search for "para2" which was successfully found once in each file. Please give it a try now. I think the only uneditable xml file that appears in Misc is the ibooks one which is only put there as a hack since it lives in METAINF anyway. Last edited by KevinH; 04-30-2024 at 08:34 PM. |
05-01-2024, 09:27 AM | #190 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2024
Device: none
|
I'd like to add another couple of feature requests pls...
Would it be possible to delete files with different endings at the same time? At the moment, if I select two files with different endings e.g. .xml, .xpgt I can't right click and select delete. In fact, I don't get any options at all when I right click with both selected. Could we have an option to format css? And if yes, can we format it so that { and } are on lines of their own? When doing find / find replace would it be possible to leave the last entry in the find window instead of clearing it? I ask because sometimes I use complicated regexes and if I get it wrong I don't want to have to type it again. (I know it's normally in the drop down list, but I'm using Becky's tip to block popups so the drop-down list doesn't appear for me) |
05-01-2024, 09:48 AM | #191 |
Grand Sorcerer
Posts: 27,580
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You already have the option to format css. But no, there is currently no way to specify formatting preferences. They are what they are. When right-clicking on css code (in Code View) and selecting Reformat CSS from the context menu; the choices are "Multiple Lines Per Style", and "Single Line Per Style". But with multiple, the opening "{" is always going to be with the first line.
|
05-01-2024, 10:07 AM | #192 | |||
Sigil Developer
Posts: 7,689
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Quote:
You can create a delete files by wildcard or regex plugin to do what you want. It would be quite easy. Quote:
Quote:
Sorry, but we are looking for generally useful features that can not easily be handled by plugins and not highly subjective requests to change formatting based in a single user's preferences. Give plugins a try. You can use them in many many ways to do things just the way you want. We have a large selection of plugins in our Plugin Index that you can use as examples. Or for your css change, modify your own copy of Sigil. Last edited by KevinH; 05-01-2024 at 10:16 AM. |
|||
05-01-2024, 11:51 AM | #193 | |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2024
Device: none
|
Quote:
|
|
05-01-2024, 11:52 AM | #194 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2024
Device: none
|
@KevinH. Understood. Plugins are the way to go then
|
05-01-2024, 02:00 PM | #195 |
Guru
Posts: 703
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
I've been doing tests on Moby Dick and it's OK now.
The files open in Code View and the search works. I also confirm that the exception is the file com.apple.ibooks.display-options.xml @DiapDealer: In addition to my own build, I also used today's deploy version. The problem mentioned earlier is still present. If I switch the theme from dark to light in Windows then Sigil switches (also dynamically, without closing Sigil). This works OK. But if I have dark mode set on the system and, if only for testing, I would like to switch Sigil to light then the environment variable SIGIL_USES_DARK_MODE=0 makes such a mode "semi dark" (attached image). |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Icon Redesign for future 1.0 Release of Sigil | shorshe | Sigil | 38 | 06-06-2016 11:29 PM |
Kindle Software Preview Release and calibre 'Fetch News' items | tomsem | Devices | 25 | 07-20-2011 08:02 AM |
Will amazon release another cheaper version of DX in the near future | CalvinL | Amazon Kindle | 6 | 07-31-2010 05:01 PM |
Suggestion For Future Release Of Calibre | clambert | Calibre | 5 | 07-10-2010 01:45 PM |
dotReader alpha release next month with future iLiad support possible | Alexander Turcic | News | 7 | 09-28-2006 12:24 PM |