Epub conversion changing " and ' to special characters
I am having an issue with one chapter of a book that I am converting to epub, all other chapters convert fine. Files are being imported from a Word file into InDesign, formatted and converted to .epub. Here is the issue I am having"
The Hebrews used this practice as well in centuries to come. They worshipped at “high places” prior to the construction of the Temple. The Temple itself was erected on a high mountain in its region.
is showing up like this in the epub file:
The Hebrews used this practice as well in centuries to come. They worshipped at “high places� prior to the construction of the Temple. The Temple itself was erected on a high mountain in its region.
notice the symbols instead of quotes. That is happening for every quotation or apostrophe in the chapter.
Unless you've encountered a bug in InDesign, if the characters show up the same on the screen, they should be exporting the same.
It does seem likely you've encountered a bug, but I think it's a lot more likely the bug is in the EPUB export code, which is new and rather fragile, to the point where it's been completely rewritten for CS5.5, I seem to recall hearing.
But OK, let's do some tests.
For one thing, highlight the characters in question in InDesign and check the Info panel -- are they the same unicode value?
Next, let's find hte smallest reproducible test case that causes this.
So, working with a copy of your document/book, first try combining two chapters into a single INDD file and seeing if you can reproduce the problem.
If not, next make a book with only two INDD files and make the problem happen.
Then delete as much as you can of the surrounding text until you can still make the problem happen.
Then report back.
If you can share such a file, we can probably figure it out.
As noted above, the EPUB export code is fragile. That's because Adobe used it as an example of how components of InDesign can be written in JavaScript rather than in C++, as a guide for how to extend InDesign. One advantage of that is the epub javascript source code is available (in the indesign sdk), so if we're feeling sufficiently enthusiastic, we can inspect the source code, modify it add instrumentation to tell us what is going on, and perhaps even fix the problem in there.
I'm not that enthusiastic, but I'll willing to at least look at it if all else fails. I gather you've got a deadline?
Similar Messages
-
I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 + digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!
I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 + digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!
-
10g won't recognize ellipsis and other special characters.
I'm trying to insert data into both VARCHAR2 and CLOB columns that contains characters such as ellipsis and other special characters. Oracle doesn't recognize the characters and just converts it to garbage. Is there a way to make Oracle easily recognize these characters?
For example, it won't recognize the following ellipsis in the string:
"Here we are … right now."My bad...I did look at the national character set instead.
When I performed theq query you posted, I got the following:
NLS_CHARACTERSET
WE8MSWIN1252
NLS_NCHAR_CHARACTERSET
AL16UTF16
I hope this new information helps. Also, the tool involved is SQL *Plus, but I'm currently concentrated on getting the insert to work via JDBC. Thanks in advance. -
Vbscript to rename files and replace special characters
Dear Exprt,
would you please help to add addtional requirement for rename and replace special characters for file
by the below script i can re name.
strAnswer = InputBox("Please enter folder location to rename files:", _
"File rename")
strfilenm = InputBox("Enter name:", _
"Rename Files")
Set FSO = CreateObject("Scripting.FileSystemObject")
Sub visitFolder(folderVar)
For Each fileToRename In folderVar.Files
fileToRename.Name = strfilenm & fileToRename.Name
Next
For Each folderToVisit In folderVar.SubFolders
visitFolder(folderToVisit)
Next
End Sub
If FSO.FolderExists(strAnswer) Then
visitFolder(FSO.getFolder(strAnswer))
End If
[email protected]Thx would you please look below what wrong in its run nothing happend no error
strAnswer = InputBox("Please enter folder location to rename files:", _
"Test")
strfilenm = InputBox("Enter name:", _
"Rename Files")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set regEx = New RegExp
'Your pattern here
Select Case tmpChar
Case "&"
changeTo = " and "
Case "/"
changeTo = "_"
Case Else
changeTo = " "
End Select
regEx.Pattern = tmpChar
Sub visitFolder(folderVar)
For Each fileToRename In folderVar.Files
fileToRename.Name = strfilenm & fileToRename.Name
fileToRename.Name = regEx.Replace(fileToRename.Name, tmpChar)
Next
For Each folderToVisit In folderVar.SubFolders
visitFolder(folderToVisit)
Next
End Sub
[email protected] -
Capturing returns and other special characters
Greetings,
I'm curious to know what is 'normally' done to capture
returns and other special characters from textareas. I want my user
to be able to insert 'control' characters into the text area to
allow them to provide some structure to the information they're
entering. At the moment, I'm processing the text char by char and
working out if it's an 'enter' or whatever, then appending a
'<br />' to the string before I store it and so on.
Is there a more established way to do this sort of
thing?Use the replace function to replace either chr(10) or chr(13)
with a break tag. It's using cold fusion functions to accomplish
the same thing you appear to be doing manually. -
E72: Swedish and other special characters not work...
When I send mail through MfE, swedish and other special characters do not reach the recipient, they are just ignored. No blanks or nothing. Every word with a swedish character ends up one letter short.
Before the firmware upgrade this was intermittent, happening only on about half of my mails.
Now I upgraded yesterday, and it seems the problem is now permanent.
Have seen similar posts from E75 and E90 owners, their problems seem to have been fixed by newer firmware.
Our setup is: Exchange 2003, Portwise authentication.
All other phone models work fine, like iPhone, E71 etc.
/SebastianAfter some testing I found out that if I use swedish chars in the subject line, it works fine. Even in the mail body.
If I don't use swedish chars in the subject, they won't work in the body. I either get garbage or nothing where the swedish chars should be.
The problem doesn't exist at all in my private IMAP mail account.
Could someone who uses Mail for Exchange and have special chars in their alphabet (swedish, finnish, german, hungarian etc) pls tell me how it's working out for you?
Message Edited by Seb_Martin on 28-Jan-2010 11:15 AM -
Dynamic Images in PDF and Escaping Special Characters
I used the following to create my own PDFs with dymnamic images:
http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
I have installed this application on Oracle's free workspace to test.
The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
I'm a complete novice with xml. Any help with this is greatly appreciated.
Thanks,
GlenI have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
XMLCdata(replace(description,''&'',''and'')) description,
The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
Does anyone know of a way to get the & to display correctly?
Thanks again,
Glen
The complete code I am using is below:
declare
l_print_layout clob;
l_xml_data clob;
begin
-- load print layout from database
for c1 in (
select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
) loop
l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
end loop;
-- generate XML data
for c2 in (
select dbms_xmlgen.getxml('
select
id,
file_name,
mime_type,
XMLCdata(replace(description,''&'',''and'')) description,
-- description,
blob2clobase64(image,''Y'') image
from eba_pdfimg_images
') xml_data from dual
) loop
l_xml_data := c2.xml_data;
end loop;
-- download print document
wwv_flow.g_page_text_generated := true;
apex_util.download_print_document (
p_file_name => 'image_demo',
p_content_disposition => 'ATTACHMENT',
p_report_data => l_xml_data ,
p_report_layout => l_print_layout,
p_report_layout_type => 'rtf',
p_document_format => :P1_FORMAT
end; -
Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW
I am using TestStand step to call a LabVIEW VI that writes commands to a serial device. The device expects a carriage return at the end of the command. I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable. However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work. And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters? I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n. But I need to send a carriage return.
I've attached my test sequence and the corresponding LabVIEW VI with a string control.
Hans
Attachments:
Special Chars.seq 27 KB
String Passing.vi 13 KBHi Hans,
Thanks for your detailed explanation and examples. In TestStand, change the String parameter's String Type to Binary String instead of ASCII. Then it will pass the desired value.
Cheers,
David Goldberg
National Instruments
Software R&D -
Forms and Czech special characters
Hello everybody,
I created a form to update calendar events. I used Czech language to made labels of inputs in the form. Czech special characters aren't display correctly. Others applications, pages and CAs are OK. Just I have problems with forms. The characters are replaced with senseless characters and if I save the form again, the sensless characters are added. So I have longer and longer strings there.
I found that the labels are saved in the table "WWA_FORM_ITEMS$". So I changed them directly in this table. But you know, it's annoying.
Does anybody knows if there is more comfortable solution?
I'm using Portal 3.0.8 and database 8.1.7.
Thanks for any answer. You can use also this address: [email protected]
Petra :)again.
Hi Petra,
i've had the same problem with german characters. As far as I know it is a bug
(either in Portal or in Interner Explorer).
You can use Netscape to design your forms or (that's how I do it) use the
html equivalent for your letter. For example instead of "ä" (or d) use "& a u m l ;"
(without the blanks - I hope that this will be displayed correctly).
Regards Oliver -
Find and replacing special characters
we have just discovered that after database unicode conversion, some special characters are starting to appear in the database after users copy and paste into the database.
For example from a table, we can identify it with:
SQL> select count(*) from table where column_name like '%' || chr(25) || '%';
COUNT(*)
15
This is for a table.
How can this be done to identify the characters for all tables because we are not sure of all the tables
ThanksHi,
Please try below pl/sql block to identify special characters in tables with respect to columns
set serveroutput on size 1000000
declare
procedure gooey(v_table varchar2, v_column varchar2) is
type t_id is table of number;
type t_dump is table of varchar2(20000);
type t_data is table of varchar2(20000);
l_id t_id;
l_data t_data;
l_dump t_dump;
cursor a is
select distinct column_name
from dba_tab_columns
where table_name = v_table
and data_type = 'VARCHAR2'
and column_name not in ('CUSTOMER_KEY','ADDRESS_KEY');
begin
for x in a loop
l_id := null;
l_data := null;
l_dump := null;
execute immediate 'SELECT ' || v_column || ', ' || x.column_name || ', ' ||
'dump(' || x.column_name || ')'
|| ' FROM ' || v_table
|| ' WHERE RTRIM((LTRIM(REPLACE(TRANSLATE(' || x.column_name ||
',''ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()_+
-=,!\`~{}./?:";''''[ ]'',''A''), ''A'', '''')))) IS NOT NULL'
bulk collect into l_id, l_data, l_dump;
if l_id is not null then
for k in 1..l_id.count loop
dbms_output.put_line(v_table || ' - ' || x.column_name || ' - ' ||
to_char(l_id(k),'999999999999'));
dbms_output.put_line(l_data(k));
dbms_output.put_line(l_dump(k));
dbms_output.put_line('*********************');
end loop;
end if;
end loop;
end gooey;
begin
gooey('table1','coln1');
gooey('table1','coln2');
gooey('table2','coln3');
end;
Like this you can get special characters for all the columns/particular column from table
Thanks,
Nitin -
Reading and writing Special Characters to Oracle DB
Hi All,
I need to insert data from CSV to Oracle DB and then use the same data for creating XML file in UTF-8 format.
I have few fields in the CSV file which has � and � special characters. I'm able to read � and write in UTF-8 , but the same procedure is resulting in some other ascii character for �.
While reading data from CSV file :
Reader l_fileReader = new InputStreamReader(p_in,"ISO-8859-1");
Can anyone help me.
Thanks,
Ramki.Does anyone has some pointers or clues?
-
How to define and use special characters
I need to define some special characters (such as an up-arrow and a down-arrow). I need to add these characters to Strings along with "normal" ASCII characters, and finally display the Strings with graphics.drawString().
Can anyone get me started or tell me where to look? I looked at the archive but apparently I'm not using the correct keywords.
Thanks in advance, Rickpublic void paint(Graphics g) {
super.paint(g);
g.drawString("up arrow: \u2191 down arrow: \u2193", 100, 100);
}Works for me.
See www.unicode.org for code charts. -
Identify and show Special Characters in the SQL result set
Hi all,
The values in a column (SC - colunm name) has special characters. For eg. 496+>9, 223'32, 167&45. Is there any function in Oracle that would give me the below result when i query that colum.
select SC from xyz;
Result should be as follows:
496+>9
223'32
167&45
Thanks in advance.yes it will have numbers and characters also along with the special characters
The results from my previous post was wrong. Here is the expected results;
496+>9
223'32
167&45
can you give me the exact query to get the above resultant.
Thank you -
Just started using apple mail. Trying to set up email folders with example: Company/Company P.O. It won't let me do it. It will not allow / or . . What am I doing wrong or can this not be done. I tried to use the Edit menu and adding the special characters, but it still won't work. Please advise. mmather
-
Resource bundle UTF-8 encoding and Turkish special characters problem
Hi dear developers,
I'm developing a WebCenter Portal App in JDev 11.1.1.6.0 version. My project uses resource bundle for being multilingual. I have two bundles :
1) <bundleName>_tr.properties (this the default one)
2) <bundleName>_en.properties (this is the supported locale.)
Now I have problem about the turkish characters in turkish bundle. When i run my project, it has a view just like this --> http://postimage.org/image/wr8nrm345/ (browser view) and http://postimage.org/image/3mf3fp2kl/ (bundleView)
(Watch the "?" chars ! )
You can see the bundle doesn't support Turkish special characters. How can i overcome with this problem?
Thanks in advance.Regards
erdo
Edited by: erdo on 09.Oca.2013 17:24
Edited by: erdo on 09.Oca.2013 17:25If you want to edit Unicode text resource you need a Unicode-aware text editor.
You can search the Internet, but I had a good experience with Notepad++
You may also ask in the JDeveloper forum ( JDeveloper and ADF ) if there is a way to resolve it. I found this: http://blog.newtrics.com/?p=242 , so I believe it may be possible somehow.
Maybe you are looking for
-
What to look for in a good quality font?
What are some things to look for in a well designed paid or free font? How do I know if it will print nicely? What can I look for after typing some text in Photoshop or Illustrator to ensure that it is high enough quality for printing? Thanks.
-
Paid Down Payment Request from 2007 not visible in 8.8
Hello experts: I recently upgraded a customer from 2007 to 8.8, and an existing fully paid down payment request is now not visible anymore in the "incoming payment" window due to some of the changes in 8.8. But I also cannot reconcile the transaction
-
Burning to audio cd? I downloaded 22 paragraphs from an audio book, which I purchased and attempted to burn them to an audio cd. The burn process worked; however, the chapters were not in sequence. For example th enew cd began with ch 19, then 3, 4,
-
Command pattern in processEvent?
hello I wonder if it is possible(anyone already done this?) to use a command pattern in processEvent function as it is widely used in actionPerformed method in conventional java applications. In recent jsf code samples in processEvent method I could
-
Is Compact Edition still the best small database choice?
I need a compact database to use with my Windows Form application. What is the best version of SQL Server to use? I see Compact Edition 4.0, however it looks like a couple of years old now. TIA, Miles Miles Gibson