Re: [oXygen-user] Non-breaking spaces in fragments via framework

2019-12-09 Thread Jirka Kosek
On 9.12.2019 14:16, Christian Achter wrote:
> When you say /"//I'm putting here directly encoded non-breaking
> space//"/ which code sequence are you using instead of  ?

You can use character map to insert character directly or depending on
operating system used you can use keyboar shortcut. In Windows you can
type 0160 while holding Alt key to enter non-breaking space directly.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
 Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



signature.asc
Description: OpenPGP digital signature
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Non-breaking spaces in fragments via framework

2019-12-09 Thread Christian Achter

Dear Radu

thanks for your feedback. I am editing my .framework files manually.

I stick to the InsertOrReplaceTextOperation because it works now and it 
is basically easier to handle: It automatically inserts the non-breaking 
space where the cursor is.


I tried the InsertOrReplaceFragmentOperation in this case which has more 
parameters and my non-breaking space stranded somewhere in the document 
which felt a bit unexpected. So I stick to InsertOrReplaceTextOperation.


Thanks and kind regards
Christian


Am 06.12.19 um 06:49 schrieb Oxygen XML Editor Support (Radu Coravu):


Hi Christian,

Please see some suggestions below:

I tried  which caused my whole framework to NOT be read by 
Oxygen XML Author.


The "" is an entity reference. If your XML document does not 
refer to a DTD which defines this entity reference.
Also you should use the 
"ro.sync.ecss.extensions.commons.operations.InsertOrReplaceFragmentOperation" 
operation to insert the entity reference.
But whatever operation I'm using I cannot reproduce the part with the 
framework not being read by Oxygen XML Author. Are you manually making 
changes to the ".framework" file or are you using Oxygen's document 
type edit dialog for this?



I tried  which just created a regular space.


Again, try to use the "InsertOrReplaceFragmentOperation" instead of 
"InsertOrReplaceTextOperation".
As Jirka said, you can also use Oxygen's status bar to look at the 
hexadecimal equivalent of the character



Regards,
Radu

Radu Coravu
 XML Editor
http://www.oxygenxml.com

On 12/5/2019 5:39 PM, Christian Achter wrote:

Dear mailinglist members,

this might be a trivial problem, but even after a longer research I 
haven't found a solution to it. I try to insert a non-breaking space 
via a button created by a framework.


I use the following code within an :

 
 
 
 
 
 
 
 text
*{CODE_FOR_THE_NON-BREAKING_SPACE}*
 
 
 
 
ro.sync.ecss.extensions.commons.operations.InsertOrReplaceTextOperation 


 
 

I added a placeholder CODE_FOR_THE_NON-BREAKING_SPACE above to show 
you were I want to fill in my non-breaking space.


I tried  which caused my whole framework to NOT be read by 
Oxygen XML Author.

I tried  which just created a regular space.
I tried #160; which just created exactly these characters as a 
string in my XML document.

I tried several other things which all didn't work.

What do I have to put between my opening and closing  tags?

Thanks in advance and kind regards
Christian Achter




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Non-breaking spaces in fragments via framework

2019-12-09 Thread Christian Achter
Thank you Jirka for your explanation, that was very helpful. I never 
realized the bottom bar of Oxygen XML Author telling me the Unicode code 
for the current character.


When you say /"//I'm putting here directly encoded non-breaking 
space//"/ which code sequence are you using instead of  ?


Btw I made an interesting experience. My framework now writes a  
into my XML file. When I switch from Author to Text mode, this  is 
not written in the text, it just looks like a "regular" space. But the 
bottom bar says it is a U+00A0. So everything is fine except the visual 
representation in the text.


When I close the XML file and open it again in text mode, there is 
suddenly a  displayed. So everything is even better after 
reopening the file.


Thanks and kind regards
Christian


Am 05.12.19 um 22:11 schrieb Jirka Kosek:

On 5.12.2019 16:39, Christian Achter wrote:

I tried  which just created a regular space.

Are you sure? At the bottom bar you can see Unicode code for character
under the caret. Normal space is U+0020 and non-breaking U+00A0.


What do I have to put between my opening and closing  tags?

I'm putting here directly encoded non-breaking space, but  should
work same.

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Non-breaking spaces in fragments via framework

2019-12-05 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Christian,

Please see some suggestions below:


I tried  which caused my whole framework to NOT be read by Oxygen XML 
Author.


The "" is an entity reference. If your XML document does not refer 
to a DTD which defines this entity reference.
Also you should use the 
"ro.sync.ecss.extensions.commons.operations.InsertOrReplaceFragmentOperation" 
operation to insert the entity reference.
But whatever operation I'm using I cannot reproduce the part with the 
framework not being read by Oxygen XML Author. Are you manually making 
changes to the ".framework" file or are you using Oxygen's document type 
edit dialog for this?



I tried  which just created a regular space.


Again, try to use the "InsertOrReplaceFragmentOperation" instead of 
"InsertOrReplaceTextOperation".
As Jirka said, you can also use Oxygen's status bar to look at the 
hexadecimal equivalent of the character



Regards,
Radu

Radu Coravu
 XML Editor
http://www.oxygenxml.com

On 12/5/2019 5:39 PM, Christian Achter wrote:

Dear mailinglist members,

this might be a trivial problem, but even after a longer research I 
haven't found a solution to it. I try to insert a non-breaking space via 
a button created by a framework.


I use the following code within an :

     
     
     
     
     
     
     
     text
*{CODE_FOR_THE_NON-BREAKING_SPACE}*
     
     
     
     
ro.sync.ecss.extensions.commons.operations.InsertOrReplaceTextOperation
     
     

I added a placeholder CODE_FOR_THE_NON-BREAKING_SPACE above to show you 
were I want to fill in my non-breaking space.


I tried  which caused my whole framework to NOT be read by Oxygen 
XML Author.

I tried  which just created a regular space.
I tried #160; which just created exactly these characters as a 
string in my XML document.

I tried several other things which all didn't work.

What do I have to put between my opening and closing  tags?

Thanks in advance and kind regards
Christian Achter




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Non-breaking spaces in fragments via framework

2019-12-05 Thread Jirka Kosek
On 5.12.2019 16:39, Christian Achter wrote:
> I tried  which just created a regular space.

Are you sure? At the bottom bar you can see Unicode code for character
under the caret. Normal space is U+0020 and non-breaking U+00A0.

> What do I have to put between my opening and closing  tags?

I'm putting here directly encoded non-breaking space, but  should
work same.

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
 Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



signature.asc
Description: OpenPGP digital signature
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Non-breaking spaces in fragments via framework

2019-12-05 Thread Christian Achter

Dear mailinglist members,

this might be a trivial problem, but even after a longer research I 
haven't found a solution to it. I try to insert a non-breaking space via 
a button created by a framework.


I use the following code within an :

    
    
    
    
    
    
    
    text
*{CODE_FOR_THE_NON-BREAKING_SPACE}*
    
    
    
    
ro.sync.ecss.extensions.commons.operations.InsertOrReplaceTextOperation
    
    

I added a placeholder CODE_FOR_THE_NON-BREAKING_SPACE above to show you 
were I want to fill in my non-breaking space.


I tried  which caused my whole framework to NOT be read by Oxygen 
XML Author.

I tried  which just created a regular space.
I tried #160; which just created exactly these characters as a 
string in my XML document.

I tried several other things which all didn't work.

What do I have to put between my opening and closing  tags?

Thanks in advance and kind regards
Christian Achter



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user