-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apostrophe becomes ' #81
Comments
I can confirm that this was intentional. All fields in the OPF file follow the specifications (see https://www.dublincore.org/specifications/dublin-core/dcmes-xml/). If you view the OPF file (using the button in the Advanced Tasks panel), for an EPUB with an apostrophe in the book title, you will see that the apostrophe is encoded as However, the "series" field is not a standard part of the specifications (I'm just following how Calibre implemented series). So it is arguable that my program should not follow the specifications for encoding special characters. I don't know what is the right thing to do in this case. At this point, I am not going to change the program, unless someone can provide further guidance on the matter. I will close this issue in a month if no guidance is forthcoming. |
Since there has been no further discussion, I am closing this issue. |
I'm not entirely sure if it's the same as X-Xadro asked for but my I noticed a similar problem. When I edit an epub to add the series any special XML-character that needs to get escaped gets properly escaped when saved into the opf-file but when reopening the file, the value for series doesn't get unescaped, e.g.
The way you do it with the element |
Hmm, I might need to check this out. Maybe the best answer is simply not to use the OPF specification for that field. |
I think like there's a little misunderstanding. Using that field is fine but what's missing is when reading the field that it should be treated as an XMLInput:
For
|
Yes, it looks like you've found a bug! I'll try and get a new version out soon... |
Hopefully fixed in 1.9.7. |
Whenever you change the series field with a word containing a apostrophe ( ' ) it changes into '
This is luckily, as far as i can tell, only in the Series field, if you do this in the Title field it picks the apostrophe up like it should.
Just found out that the ( ’ ) does work as intended just not the ( ' )
The text was updated successfully, but these errors were encountered: