Search found 264 matches

by sderrick
Thu Apr 04, 2019 5:42 pm
Forum: SDK-API, Frameworks - Document Types
Topic: warning on windows 10
Replies: 5
Views: 2956

Re: warning on windows 10

on my windows test machine its running 11.0.2

Scott
by sderrick
Wed Apr 03, 2019 6:33 pm
Forum: SDK-API, Frameworks - Document Types
Topic: warning on windows 10
Replies: 5
Views: 2956

warning on windows 10

When our sdk editor loads on windows 10 I see the following warning

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by ro.sync.ui.te (files:c:/Users/Scott/Desktop/ide/oxygen-21.0.0.0.jar) to field javax.swing.text.DefaultHighLighter.highlights

Scott
by sderrick
Wed Apr 03, 2019 6:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: set word wrap and font size api?
Replies: 6
Views: 3184

Re: set word wrap and font size api?

Is there a corresponding get()? for the current font and line wrap setting?

I looked for

AuthorComponentFactory.getInstance().getObjectProperty("editor.line.wrap"); but don't see it?

thanks,

Scott
by sderrick
Mon Apr 01, 2019 9:36 pm
Forum: SDK-API, Frameworks - Document Types
Topic: set word wrap and font size api?
Replies: 6
Views: 3184

set word wrap and font size api?

Using the SDK text mode editor. Some of our users like to change the font size in the editor when starting, I would like to save off the last font change and restore that change when they next start the editor. Some of our users like word wrap on by default, some like it off by default. Is there an ...
by sderrick
Mon Apr 01, 2019 8:54 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

Everything worked well except I had to replace

editor.getEncodingForSerialization()

with

Charset.forName(editor.getEncodingForSerialization()).newEncoder()

in the OutputStream constructor.

thanks again,

Scott
by sderrick
Mon Apr 01, 2019 5:23 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

Radu,

thanks, I will put it to good use! 8)

Scott
by sderrick
Fri Mar 29, 2019 8:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

Radu, I am using getWSEditorAccess().createContentInputStream(); to get an inputSteam when saving a document. It is throwing an exception(java.nio.charset.UnmappableCharacterException) when there is a non ASCII character in the document, which is good. I would like to provide more information as to ...
by sderrick
Thu Dec 20, 2018 7:22 pm
Forum: SDK-API, Frameworks - Document Types
Topic: The demise of Java Web Start
Replies: 2
Views: 1965

Re: The demise of Java Web Start

It appears the only viable option is to convert the sdk into a standalone app.

Which shouldn't be too difficult, and I wouldn't mind seeing the pesky browser/jnlp gyrations go away.

I will check that out

thanks,

Scott
by sderrick
Thu Dec 20, 2018 4:46 am
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

Radu, I am using editorComponent.getWSEditorAccess().createContentReader() to create a BufferedReader, then looping through a read() call on the BufferedReader to build a document text buffer. However.... I just installed the latest Java release 11.0.1 and to my dismay discovered javaws is no longer...
by sderrick
Thu Dec 20, 2018 4:29 am
Forum: SDK-API, Frameworks - Document Types
Topic: The demise of Java Web Start
Replies: 2
Views: 1965

The demise of Java Web Start

I just installed Java 11.0.1 and to my surprise, no webstart! No javaws executable in the bin folder. I knew it was depreciated in 9 but had no idea it was going to be killed in version 11. We use the SDK in a applet that is run via web start! THe applet must be started through a web page and we use...
by sderrick
Tue Dec 18, 2018 10:15 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

You are correct, the editor is in Text editing mode. I have not set an option encoding_errors_handling to any value. How would I set it to 0? We are on version 17.1.0.4, which may be relevant. I haven't upgraded because I normally don;t fix what aint broke. How much work would you anticipate if I up...
by sderrick
Sun Dec 16, 2018 3:12 am
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

I replaced createContentReader() with createContentInputStream() If I paste in a non ascii char into the editor and then save it, it looks like the bad char is getting replaced by 3 ���. Which are U+FFFD's This is the behavior the desktop editor does if REPLACE is selected for Encoding error handlin...
by sderrick
Fri Dec 14, 2018 8:59 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

Radu, I am using editorComponent.getWSEditorAccess().createContentReader() to create a BufferedReader, as you suspected. Then looping through a read() call on the Reader to build a document text buffer. Are you saying if I used a createContentInputStream() to get an InputStream, the call would throw...
by sderrick
Fri Dec 14, 2018 7:31 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

Re: detect encoding problem on load

Radu, Once again you guys save my bacon. After I started this thread I had the thought that I was probably skipping or doing an end run around the behavior that would catch this for me and you have verified that. I will follow you advice and let you know how it works. thanks again for for great tech...
by sderrick
Thu Dec 13, 2018 10:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: detect encoding problem on load
Replies: 13
Views: 6753

detect encoding problem on load

We are using the SDK to provide our editors a way to edit TEI files. Our files are encoded us-ascii. I just had one of them paste some text in from Word. The text had a few non us-ascii chars, like the curly quote. If I paste in this text in my desktop oxygen editor and then attempt to save it I get...
by sderrick
Fri Aug 03, 2018 3:00 am
Forum: Common Problems
Topic: Find/Replace uppercase found words
Replies: 1
Views: 1723

Find/Replace uppercase found words

I have a regex expression which finds the words I I need to uppercase.

\b([0-9]+[a-z]+\.[0-9]+\.[0-9]+)\b

Is there a way to upper case the regex groups in the "replace with" input box?

thanks,

Scott
by sderrick
Thu Jul 26, 2018 8:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: SDK personal license
Replies: 6
Views: 3756

Re: SDK personal license

Radu,

I need to have a user clear their author cache on a mac. I thought it would be in the same place as a linux machine, a hidden folder in their home folder, but it is not?

I also looked in the Library/Caches folder and it was not in there?

Where is it?

thanks,

Scott
by sderrick
Wed Jul 18, 2018 8:16 pm
Forum: SDK-API, Frameworks - Document Types
Topic: SDK personal license
Replies: 6
Views: 3756

Re: SDK personal license

I tried using the users license and it worked fine for me. Editor opened no problem and did not consume a floating license. But yesterday she was on and it did use a floating license. I used the same jnlp file to open the editor as she had yesterday. I also realized her maintenance pack had run out ...
by sderrick
Wed Jul 18, 2018 6:21 pm
Forum: SDK-API, Frameworks - Document Types
Topic: SDK personal license
Replies: 6
Views: 3756

Re: SDK personal license

To be clear we are using the SDK author editor. When I init the factory I check if the user is requesting to use a floating license or their personal license and pass in the appropriate parameters on that choice. Here's the code, license servlet stuff blanked out. [code] if (license.equals("flo...
by sderrick
Wed Jul 18, 2018 6:05 pm
Forum: Common Problems
Topic: Java error loading SDK
Replies: 7
Views: 2914

Re: Java error loading SDK

OK, we'll stay with 1.8 until you give the all clear.
by sderrick
Wed Jul 18, 2018 7:21 am
Forum: Common Problems
Topic: Java error loading SDK
Replies: 7
Views: 2914

Re: Java error loading SDK

I backed my jdk out to java 1.8 and the problem stopped.

Scott
by sderrick
Wed Jul 18, 2018 7:20 am
Forum: SDK-API, Frameworks - Document Types
Topic: SDK personal license
Replies: 6
Views: 3756

SDK personal license

We are using the SDK Editor with a floating license sever. Working like a champ. Some of the users have a personal or work purchased license for their desktop oxygen editor and I allow them to set their preference to use their license key thus freeing one of the floating licenses for the workers tha...
by sderrick
Wed Jul 18, 2018 12:55 am
Forum: Common Problems
Topic: Java error loading SDK
Replies: 7
Views: 2914

Java error loading SDK

Just tried to use our SDK editor and had this come up in the console??? java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsLookAndFeel at ro.sync.util.h.f(Unknown Source) at ro.sync.ui.application.cc.zw(Unknown Source) at ro.sync.ui.application.cc.<init>(Unknown Source) at ro.syn...
by sderrick
Wed Jun 13, 2018 6:18 pm
Forum: Common Problems
Topic: Variables not available in debugger
Replies: 2
Views: 2158

Variables not available in debugger

The problem is pretty simple. Simple variables or parameters are available until you step over a more complex line of code, they then become unavailable in the context or watch panes. Depending on the code they sometimes reappear sometimes not. Makes the debugger virtually useless sometimes. Having ...
by sderrick
Mon Jul 24, 2017 8:22 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Latest Java 8.141 update breaks my web app
Replies: 4
Views: 7868

Re: Latest Java 8.141 update breaks my web app

Is this the only jar that needs the name fixed?
by sderrick
Mon Jul 24, 2017 5:45 am
Forum: SDK-API, Frameworks - Document Types
Topic: Latest Java 8.141 update breaks my web app
Replies: 4
Views: 7868

Re: Latest Java 8.141 update breaks my web app

just found this. since this is your jar not sure what to do? Known Issues deploy/webstart JAR file validation changes After upgrading to the JDK July CPU release (8u141/7u151/6u161), when executing Java Webstart applications, customers may encounter an exception like “java.lang.SecurityException: di...
by sderrick
Mon Jul 24, 2017 5:28 am
Forum: SDK-API, Frameworks - Document Types
Topic: Latest Java 8.141 update breaks my web app
Replies: 4
Views: 7868

Latest Java 8.141 update breaks my web app

I had a user upgrade her system to 8.141. Now when loading our editor(SDK) she gets the following error. com.sun.deploy.net.JARSigningException: Could not verify signing in resource: https://www.mbepapers.org/editor1/lib/oxygen-resolver-17.1.0.4.jar at com.sun.deploy.security.JarVerifier.authenticat...
by sderrick
Tue Apr 11, 2017 4:58 pm
Forum: Common Problems
Topic: Generate closed tag
Replies: 2
Views: 1744

Re: Generate closed tag

Radu,

thanks for the quick reply.

I figured out how to do it.

If your input is <foo></foo>, the output is <foo/>
If your input is <foo/>, the output is <foo></foo>

counter intuitive but I've found Saxon is like that in many ways.

thanks again,

Scott
by sderrick
Mon Apr 10, 2017 6:10 pm
Forum: Common Problems
Topic: Generate closed tag
Replies: 2
Views: 1744

Generate closed tag

When transforming into xml can I generated a closed tag?

In my xsl file I have
<origPlace/>
in the resulting document
<origPlace/></origin>
anyway to have the tag generated with as it is in the xsl file?

thanks,

Scott
by sderrick
Tue Mar 21, 2017 8:21 pm
Forum: Common Problems
Topic: Error transforming ODD spec to rnc or rng
Replies: 7
Views: 3893

Re: Error transforming ODD spec to rnc or rng

I updated the tei framework as described here http://blogs.it.ox.ac.uk/jamesc/2014/04 ... in-oxygen/ and all is well!!!