./textproc/hs-doclayout, Prettyprinting library for laying out text documents

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.4.0.1nb2, Package name: hs-doclayout-0.4.0.1nb2, Maintainer: pho

doclayout is a prettyprinting library for laying out text documents,
with several features not present in prettyprinting libraries designed
for code. It was designed for use in pandoc.


Required to run:
[devel/hs-safe] [converters/hs-emojis] [lang/ghc94]

Master sites:

Filesize: 37.563 KB

Version history: (Expand)


CVS history: (Expand)


   2024-04-29 14:21:49 by Masatake Daimon | Files touched by this commit (1)
Log message:
textproc/hs-doclayout: Fix build with GHC 9.8

This breaks build with the currently default GHC 9.6. Please bear with me
until I switch the default compiler.
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-28 11:45:22 by Masatake Daimon | Files touched by this commit (4)
Log message:
textproc/hs-doclayout: Update to 0.4.0.1

0.4.0.1
    Add clause for Empty to renderList (#22).
    Remove upper bound for criterion
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2023-01-25 16:24:23 by Masatake Daimon | Files touched by this commit (4) | Package updated
Log message:
textproc/hs-doclayout: Update to 0.4

0.4
* Expose unfoldD [API change].
* Remove realLengthNoShortcut, isEmojiModifier, and isEmojiJoiner [API
  change] (Stephen Morgan).
* Add new exported functions realLengthNarrowContext,
  realLengthWideContext, realLengthNarrowContextNoShortcut,
  realLengthWideContextNoShortcut, isSkinToneModifier, isZWJ [API change]
  (Stephen Morgan).
* Compute realLength strictly.
* Make getOffset stricter.
* Drop support for ghc <= 8.4, add test for ghc 9.2.
* Don't collapse the CarriageReturn + Newline combination (#20). We want to
  ensure that a literal starting with a Newline doesn't lose the newline if
  it occurs after a CarriageReturn. This affects code blocks in pandoc that
  begin with newlines.
* Improve performance of NoShortcut code (Stephen Morgan).
* Simplify emoji processing (Stephen Morgan).
* Add benchmarking for code with no shortcuts (Stephen Morgan).
* Add unicodeWidth.inc to cabal file.
* Fix offset, minOffset, updateColumn so they don't re-render.
* Get unicode block widths directly from the Unicode specification, rather
  than writing it out ourselves (Stephen Morgan).
* Resolve the width of ambiguous characters based on their context (Stephen
  Morgan).
* Spacing marks should have nonzero width, even though they are combining
  characters (Stephen Morgan).
* Add shortcuts for extended Latin, Arabic, Cyrillic, Greek, Devangari,
  Bengali, Korean, Telugu, and Tamil (Stephen Morgan).
* Fix location of extra-source-files in cabal.
* update.hs: require text package
* Handle emoji variation modifiers specially, so the keypad emoji can be
  ignored (Stephen Morgan). This results in a 16% speedup of realLength on
  ascii text.
* Add benchmarks for all scripts used by more than 50 million people, plus
  a couple more. (#9, Stephen Morgan).
   2022-02-26 04:58:36 by Masatake Daimon | Files touched by this commit (872)
Log message:
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
   2022-02-12 09:51:00 by Masatake Daimon | Files touched by this commit (575)
Log message:
revbump after changing the default Haskell compiler
   2022-02-11 14:30:32 by Masatake Daimon | Files touched by this commit (3)
Log message:
Update to doclayout-0.3.1.1

0.3.1.1
* Fix the end of the block of zero width characters which contains the
  zero-width joiners and directional markings (Stephen Morgan, #5). This
  fixes a regression introduced in 0.3.1, affecting code points 0x2010 to
  0x2030.

0.3.1
* Improved handling of emojis. Emojis are double-wide, but previously this
  library did not treat them as such. We now have comprehensive support of
  emojis, including variation modifiers and zero-width joiners, verified by
  a test suite. Performance has been confirmed to be no worse for text
  without emojis. (Stephen Morgan, #1). API changes: export
  realLengthNoShortcut, isEmojiModifier, isEmojiVariation, isEmojiJoiner.