Code Monkey home page Code Monkey logo

Comments (8)

Roger-luo avatar Roger-luo commented on June 20, 2024 1

I think this is now fixed after the rewrite, but I need to tag a release first and there shouldn't be break changes the surface syntax should stay the same, but there could be breaking changes in building binaries.

from comonicon.jl.

Roger-luo avatar Roger-luo commented on June 20, 2024 1

should be fixed with comonicon/ComoniconBuilder.jl@613fdd4

from comonicon.jl.

Roger-luo avatar Roger-luo commented on June 20, 2024 1

I've tagged a new version (run up in pkg mode), please open a new issue if there are still problems.

from comonicon.jl.

ericphanson avatar ericphanson commented on June 20, 2024

It seems like spaces still give it trouble, but it doesn't seem to interpret it as a flag anymore which is good, ref ericphanson/SearchablePDFs.jl#5 (comment)

from comonicon.jl.

Roger-luo avatar Roger-luo commented on June 20, 2024

@ericphanson this is strange... I copy paste the function statement locally and it seems to work, what OS are you using?

# main.jl
using Comonicon

@main function searchable(input_pdf::String,
                          output_path::String=string(splitext(input_pdf)[1], "_OCR",
                                                     ".pdf"); apply_unpaper::Bool=false,
                          ntasks::Int=Sys.CPU_THREADS - 1, tesseract_nthreads::Int=1,
                          keep_intermediates::Bool=false,
                          tmp::String="get_scratch_dir(input_pdf)", quiet::Bool=false,
                          logfile::Union{Nothing,String}=nothing, force::Bool=false)

    println(input_pdf)
end
➜  Comonicon git:(master) ✗ julia main.jl "P - W93.pdf" 
P - W93.pdf
➜  Comonicon git:(master) ✗ 

from comonicon.jl.

Roger-luo avatar Roger-luo commented on June 20, 2024

Ah I know why, it's because bash will still think "P - W93.pdf" is three tokens!

from comonicon.jl.

ericphanson avatar ericphanson commented on June 20, 2024

Huh, I get the same thing with your main.jl,

❯ julia --project=. src/main.jl "P - W93.pdf"
P - W93.pdf

I'm on MacOS (m1 under rosetta).

Oh?

from comonicon.jl.

ericphanson avatar ericphanson commented on June 20, 2024

thanks!

from comonicon.jl.

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.