Giter Site home page Giter Site logo

Comments (7)

eteran avatar eteran commented on May 29, 2024

I didn't want nedit-ng to have an explicit X11 dependency just to read the old .rc file format (They used Xresources as the file format). So, when you build nedit-ng, it will also create nedit-import which will import basically everything except font information since that doesn't have an easy 1:1 mapping.

I think that this should cover your needs. Please re-open if this is not the case.

from nedit-ng.

mmorandi avatar mmorandi commented on May 29, 2024

Consider the attached nedit.rc . nedit-import does not import the non-standard "Left Keyword", "Right Keyword" etc... text drawing styles (they should go into theme.xml, right? That file is not created by nedit-import, at least not for me).

As a result, the non-standard Mbdyn syntax highlighting rule is broken.

I do not think that this is the kind of "font information" you are referring to when you say that it cannot be easily mapped.

To be clear: it's not a big deal (one can always re-created them from scratch), but I still think this is a missing feature of nedit-import.
nedit.rc.gz

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

I'll take a look at the file. Settings like that should definitely get transferred.

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

So... in the generated theme.xml, I see entries such as:

 <style name="Right Keyword" font="Bold" foreground="saddle brown"/>
 <style name="Math Keyword" font="Bold" foreground="SeaGreen"/>
 <style name="Left Keyword" font="Bold" foreground="black"/>

However, your file has revealed a different bug. My color code doesn't support colors in the format: rgb:e5/e5/e5.

I'll have to add that, which should make the tool work correctly. Give me a few minutes and I'll upload a patch for that. Hopefully, it'll resolve your issue as well.

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

just pushed a fix to make the two colors in your example that used rgb:hh/hh/hh syntax get converted correctly. Hopefully, that was the extent of the issue. Please re-open if the problem persists.

from nedit-ng.

mmorandi avatar mmorandi commented on May 29, 2024

I had to dig it a little more, because you are seeing file theme.xml, why I was claiming it was not written at all.

It turns out that if the directory $HOME/.config/nedit-ng does not exist (and it likely does not exist the very first time one launches nedit-import) then file.open(QIODevice::WriteOnly) at import.cpp:247 fails, and the file theme.xml is not created.

Later on, Settings::savePreferences() is a little bit more robust, and creates the directory if it does not exist. If, at this point, I re-run nedit-import then theme.xml is created, as it should.

from nedit-ng.

eteran avatar eteran commented on May 29, 2024

Ah, I will fix that! Thanks for the follow up.

from nedit-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.