|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 2155740
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Searching for "& # 9 ; "
In an epub (exported from InDesign) that I was sent to work on, there are many encoded TAB (& # 9 ; ) characters where there were tabs in the InDesign file.
But Sigil does not seem to be able to find such characters in a search and replace. Using regex with \t also does not find them. Is there a work around without using a text editor? If I had the InDesign file, I could remove the tab chars there, and I expect I will need to get that. But maybe someone here has an easier work around? Thanks Jim |
|
|
|
|
|
#2 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,436
Karma: 6733960
Join Date: Nov 2009
Device: many
|
Try going to Sigil's Preferences to Preserve Entities. Then add to that list. Then run Sigil's Mend on all your xhtml files.
Now search for the that specific entity in the text to see if any remain and replace them as you want. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 2155740
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Great-
Many thanks, Kevin Jim |
|
|
|
|
|
#4 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,436
Karma: 6733960
Join Date: Nov 2009
Device: many
|
You can also use the following to find tab chars directly in Find without having to play with the PreserveEntities settings at all using Regex mode:
\x{09} That will look for a specific utf-8 hex char or the more traditional \t But search mode most be Regex for those to work. Normal mode removes the significance of the leading "\" If you copy a tab from some text editor, you can actually use Normal mode and just paste the copied tab into the Find field and that would work too. Typing a tab using the keyboard directly into the Find field will not work as tab is used to switch input fields in Qt for people who prefer/need keyboard accessibility instead of the mouse to select a field. Last edited by KevinH; 03-11-2026 at 03:21 PM. |
|
|
|
|
|
#5 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 2155740
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Many thanks, Kevin
Jim |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,197
Karma: 211504714
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It is my understanding that tab entities (or characters) are still going to be collapsed into a single space by just about any renderer out there. Without some sort of PRE tag, there's very little point in using them.
Even our Sigil Mend code won't preserve tab entities/characters not inside pre tags. They get converted to a single space. Inside of pre tags, a tab entity will be preserved if it's in the preserve entities list, or converted to the U0009 character if it is not. Last edited by DiapDealer; 03-11-2026 at 05:06 PM. |
|
|
|
![]() |
| Tags |
| tab |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 11:46 AM |
| I want Calibre to auto convert "&" in multiauthored books into "," (comma) | droopy | Devices | 1 | 09-06-2019 06:10 PM |
| Bug: Automater substitution of "and" with "&" in author field | mikebw | Library Management | 2 | 04-15-2019 03:39 AM |
| Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
| Question - Does iLiab have the "search" & "annotation, highlighting" features? | HiSoC8Y | iRex | 5 | 07-01-2009 04:37 PM |