Code Monkey home page Code Monkey logo

Comments (10)

ctapmex avatar ctapmex commented on June 23, 2024 1

ok, I am looking this problem today

from colorer-library.

ctapmex avatar ctapmex commented on June 23, 2024

see https://github.com/colorer/Colorer-library/blob/master/CHANGELOG.md
'Remove working with different charsets. Input files only in Unicode, output only in UTF-8.'

input Unicode string detecting on BOM. Default UTF-8 without BOM.

from colorer-library.

nightroman avatar nightroman commented on June 23, 2024

Ah, good, it is intended. One more issue then, one moment.

from colorer-library.

nightroman avatar nightroman commented on June 23, 2024

I use colorer for converting files to HTML with colors

colorer.exe -h -dc -c $Catalog -i visual-rgb $From

1.1.0 outputs data with extra warning/info and then BOM and converted text:

[2021-02-28 06:40:54.711] [warning] Duplicate prototype 'text' я╗┐
<normal converted text>

When I output this to a file and open it, it's a problem that BOM is not the first there.
What is this warning? Can I suppress it?

from colorer-library.

nightroman avatar nightroman commented on June 23, 2024

And yes, I have my own prototype 'text' which is "duplicated" by design, it replaces the default prototype with my custom.

from colorer-library.

ctapmex avatar ctapmex commented on June 23, 2024

several solutions

  • disable logging by adding -el off
  • output result to file by -o file.html

from colorer-library.

ctapmex avatar ctapmex commented on June 23, 2024

I will try to add the option 'disable output logging to stdout'

from colorer-library.

nightroman avatar nightroman commented on June 23, 2024

disable logging by adding -el off

It seems it does not help.

output result to file by -o file.html

It will probably help, I'll try. The disadvantage is that I need an extra temp file for this.
(I output to a file anyway but before that I need to post-process colorer stdout output)

I will try to add the option 'disable output logging to stdout'

That would be good.

from colorer-library.

ctapmex avatar ctapmex commented on June 23, 2024

fix, please check it. https://github.com/colorer/Colorer-library/releases/tag/v1.1.1

from colorer-library.

nightroman avatar nightroman commented on June 23, 2024

Works fine, super, thank you!

from colorer-library.

Related Issues (13)

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.