Those are my only tests so far. Iāll get to trying others when I have more time. Thanks for noticing the period. Iāll create a bare-bones example too.
Iāve tested a few punctuation marks, and I tested with a second manichaean symbol in the prefix/suffix, since š«° is called manichaean punctuation star. Punctuation moves; other characters do not. Hereās a bare-bones test project and pdf output.
1. One of the Compiler styles was named āanother emojiā, so it wouldnāt be affected by the (not) matching editor style. Fixing this results in both causing the same trouble:
2. Both symbols also cause problems in the Compiler settings when I try to edit the prefix / suffix input fields. Like placing the cursor behind the symbol and press ā«. Wonāt work. Marking the symbol and then deleting it works. This is already odd.
3. Choosing another symbol (with no āpunctuationā in the name, donāt know if that matters) works just fine:
Yeah, I did the test properly and got your results here, but then I renamed the style and lost the thread.
I suspect all the manichaean symbols will behave this way, but I havenāt the patience to test a lot of them. If you want to find them, search for manichaean in the Macās emoji & symbols viewer. This must be a character set intended for a right-to-left language, but my google searches didnāt confirm anything like that so far.
Yup, same conclusion. RTL characters seem to confuse the Compiler. Could be a bug (maybe even in macOS) or by design. Short solution: Donāt use those.
Hmmm. How does Scrivener create the PDF? Is there even Markdown involved (internally)? I compiled directly to PDF.
While I canāt explain why it happens in this weird way, it kind of makes sense (wellā¦) in hindsight. If a character associated with an RTL language ātriggersā a change of the writing direction, the end of the sentence would then have to be on the left side. And so its final sentence punctuation.
Iād bet even deleting the character in Compilesās style settings works if you try it the other way around (placing the caret before it and then deleteā¦ or forward delete? ). But honestly. Iām lazy and very tired now.
Hmmm. Most of it could be outside of Scrivenerās control (e.g. judging from the way the input fields reacted to this character, which would be on the OS level). Not just from a conversion point of view, but also later down the road (think: display hickups in eBook readers). Maybe @AmberV has more insight. Iād say: if it hasnāt to be exactly this symbol, choose a similar one thatās not RTL-related.
Iāll use something else, of course. It was an experiment, with a symbol chosen at random; not a big deal if I canāt actually use it. It was a startling behavior, though!
I havenāt done too much looking into this, but I think the clue that November_Sierra uncovered about this being an RTL glyph could explain oddities. Putting RTL characters around LTR text, and potentially putting the software into a position of having to decide whether a āprefixā should go on the left or right of the selection, added with potential confusion over the illogical (from an RTL standpoint) punctuation placement, is surely causing issuesābut given how much of an edge-case-of-one this surely is, finding another glyph is probably the best route forward.
As I understand it, a basic part of the Scrivener 3 design involved converting rtf to markdown, and all other exports from the markdown.
It wouldnāt have anything to do with the macOS PDF printer, if thatās what you meantāyou can get much the same by copying some text into TextEdit and using File/Print and saving as PDF. Markdown on the other hand is used internally to produce components of the HTML for ebooks, since macOS itself has such an ancient HTML converter that the specification it produces is something people were still using Netscape to load, when the spec was still new. It has the nice side-effect of producing way cleaner HTML than the text engineās RTF ā HTML generate ever could, though, so all around itās a good choice.
Scrivener has extensive Markdown integration, but only uses it directly in its non-MD compile formats for that one task.