Coder Social home page Coder Social logo

cl-typesetting's People

Contributors

mbattyani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cl-typesetting's Issues

Uppercase package and symbol names break Allegro modern-mode

Hi,

In hyphenation-fp.lisp, I recommend changing the defpackage :cl-typesetting-hyphen to the following:

(defpackage :cl-typesetting-hyphen
  (:use common-lisp)
  (:nicknames :cl-tt-hyph)
  (:export #:language-defined-p
	   #:define-language
	   #:language-loaded-p
	   #:load-language
	   #:language-hyphenation))

Otherwise the uppercase strings will break modern-mode Lisps such as Allegro CL mlisp.

Regards,

Dave

`:cell-padding` vs. `:center`, `:border-color`

Given this example:

(pdf:with-document ()
  (pdf:with-page ()
    (pdf:with-outline-level ("1" (pdf:register-page-reference))
      (let ((result (tt:compile-text ()
                      (tt:table (:border 1 :border-color "#c00000"
                                 :padding 0  :cell-padding 6
                                 :col-widths (list 100 200))
                        (tt:row ()
                          (tt:cell () "foo bar baz" :eol "hooray")
                          (tt:cell (:v-align :center) "some more text"))))))
        (tt::draw-block result 50 160 480 100))))
  (pdf:write-document "/tmp/aaaa.pdf"))

I observe that the vertical size resp. alignment isn't fully correct (padding below is bigger than above, so the :v-align :center is off-center), and the :border-color isn't respected.

Thanks for your help!

Error "Unable to fit even on a new page" (`cannot-fit-on-page`) is triggered

In test.lisp the test multi-page-example triggers the error cannot-fit-on-page with message "Unable to fit even on a new page.". It appears that the while condition that checks whether there are boxes in the content left is true, but the boxes are only two text styles (the latter with all values to nil). This does not result in boxes when (fit-lines content ...) is applied, thus triggering the error (all this in draw-pages in top-level.lisp).

The same issue occurs when trying to generate the documentation pdf. A simple workaround is to simply remove the trigger of the error, but this gives an extra page in the documentation pdf, for example.

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.