llpp.git
3 years agoPut bisection under build/
malc [Mon, 12 Jul 2021 15:47:22 +0000 (12 18:47 +0300)]
Put bisection under build/

3 years agoInitial steb at bisection helper script
malc [Mon, 12 Jul 2021 15:42:23 +0000 (12 18:42 +0300)]
Initial steb at bisection helper script

3 years agoBetter wording
malc [Mon, 12 Jul 2021 14:28:06 +0000 (12 17:28 +0300)]
Better wording

3 years agoCosmetics
malc [Thu, 8 Jul 2021 06:38:14 +0000 (8 09:38 +0300)]
Cosmetics

3 years agoSync with upstream
malc [Tue, 6 Jul 2021 18:40:32 +0000 (6 21:40 +0300)]
Sync with upstream

3 years agoRevert "Work with (and require) ocaml 4.13.0~alpha1"
malc [Tue, 6 Jul 2021 15:25:34 +0000 (6 18:25 +0300)]
Revert "Work with (and require) ocaml 4.13.0~alpha1"

Apparently there are issues when ocamlc is used  as a C driver.

This reverts commit 5eaaf40c379c9f7239b3fe7660c062211ce7aa4a.

3 years agoRevert "An attempt to work around an issue with outputs"
malc [Tue, 6 Jul 2021 11:55:53 +0000 (6 14:55 +0300)]
Revert "An attempt to work around an issue with outputs"

This reverts commit c4822f770ff7d65e884e1baaec58d101bbacce3e.

3 years agoAn attempt to work around an issue with outputs
malc [Tue, 6 Jul 2021 10:57:09 +0000 (6 13:57 +0300)]
An attempt to work around an issue with outputs

Noted by GitHub's CI setup.

3 years agoWork with (and require) ocaml 4.13.0~alpha1
malc [Sat, 3 Jul 2021 16:12:14 +0000 (3 19:12 +0300)]
Work with (and require) ocaml 4.13.0~alpha1

3 years agoCosmetics
malc [Fri, 2 Jul 2021 12:58:39 +0000 (2 15:58 +0300)]
Cosmetics

3 years agoCosmetics
malc [Mon, 28 Jun 2021 05:29:22 +0000 (28 08:29 +0300)]
Cosmetics

3 years agoPride & Precedence
malc [Mon, 28 Jun 2021 02:29:18 +0000 (28 05:29 +0300)]
Pride & Precedence

This baby is eleven!

3 years agoAdd a visual clue for a page scaled scrolling
malc [Sun, 27 Jun 2021 16:17:43 +0000 (27 19:17 +0300)]
Add a visual clue for a page scaled scrolling

Guess adding it is as good as any method of finding out whether
somebody else uses scalled page scrolling.

3 years agoCosmetics
malc [Sun, 27 Jun 2021 14:55:52 +0000 (27 17:55 +0300)]
Cosmetics

3 years agoRename clamp to add_to_y_and_clamp
malc [Sun, 27 Jun 2021 14:54:39 +0000 (27 17:54 +0300)]
Rename clamp to add_to_y_and_clamp

3 years agoCo(nsistency|smetics)
malc [Sun, 27 Jun 2021 14:38:13 +0000 (27 17:38 +0300)]
Co(nsistency|smetics)

3 years agoMove launchers under external commands
malc [Tue, 22 Jun 2021 12:30:07 +0000 (22 15:30 +0300)]
Move launchers under external commands

3 years agoRemove redundant information
malc [Mon, 21 Jun 2021 09:41:50 +0000 (21 12:41 +0300)]
Remove redundant information

3 years agoConsistency
malc [Mon, 21 Jun 2021 09:35:27 +0000 (21 12:35 +0300)]
Consistency

3 years agoMark -dest undocumented
malc [Mon, 21 Jun 2021 09:33:21 +0000 (21 12:33 +0300)]
Mark -dest undocumented

3 years agoRemove misspelled word
malc [Mon, 21 Jun 2021 08:56:16 +0000 (21 11:56 +0300)]
Remove misspelled word

3 years agoDocument LLPP_FALLBACK_FONT
malc [Mon, 21 Jun 2021 08:27:50 +0000 (21 11:27 +0300)]
Document LLPP_FALLBACK_FONT

3 years agoDo not try to build llpphtml docs
malc [Mon, 21 Jun 2021 08:26:05 +0000 (21 11:26 +0300)]
Do not try to build llpphtml docs

3 years agoRemove antiword "support"
malc [Sun, 20 Jun 2021 14:29:31 +0000 (20 17:29 +0300)]
Remove antiword "support"

It's easier to just use antiword by hand when uncoconv is not available.

3 years agoPrecede antiword1's formatted text output with a <pre>
malc [Sun, 20 Jun 2021 13:19:02 +0000 (20 16:19 +0300)]
Precede antiword1's formatted text output with a <pre>

3 years agoDo not use unset variables
malc [Sun, 20 Jun 2021 13:11:44 +0000 (20 16:11 +0300)]
Do not use unset variables

3 years agoHandle texinfo in llppac without relying on prince
malc [Fri, 18 Jun 2021 14:15:04 +0000 (18 17:15 +0300)]
Handle texinfo in llppac without relying on prince

Fix a few issues along the way.

3 years agollpphtml moved out
malc [Fri, 18 Jun 2021 13:29:32 +0000 (18 16:29 +0300)]
llpphtml moved out

3 years agoMove to snippets
malc [Fri, 18 Jun 2021 13:26:10 +0000 (18 16:26 +0300)]
Move to snippets

3 years agoConsistency
malc [Tue, 15 Jun 2021 07:21:57 +0000 (15 10:21 +0300)]
Consistency

3 years agoScroll horizontally with shift
Dmitri Iouchtchenko [Tue, 15 Jun 2021 04:18:54 +0000 (15 00:18 -0400)]
Scroll horizontally with shift

3 years agoStop selection process if pipechar does not complete successfully
malc [Sun, 13 Jun 2021 08:39:36 +0000 (13 11:39 +0300)]
Stop selection process if pipechar does not complete successfully

3 years agoQuote fontface and printf arguments
malc [Sat, 12 Jun 2021 10:21:37 +0000 (12 13:21 +0300)]
Quote fontface and printf arguments

Paths[1] with spaces in them do not work otherwise.

[1] $fontpath is controlled by the user

3 years agoMake it better
malc [Fri, 11 Jun 2021 19:17:10 +0000 (11 22:17 +0300)]
Make it better

Thanks to Avi Halachmi.

3 years agoReformat to not confuse emacs' c-mode
malc [Fri, 11 Jun 2021 08:00:41 +0000 (11 11:00 +0300)]
Reformat to not confuse emacs' c-mode

3 years agoDo not set diagnostic callbacks when not redirecting stderr
malc [Fri, 11 Jun 2021 07:58:13 +0000 (11 10:58 +0300)]
Do not set diagnostic callbacks when not redirecting stderr

3 years agoAdd bounds checking
malc [Fri, 11 Jun 2021 07:39:16 +0000 (11 10:39 +0300)]
Add bounds checking

3 years agoEPUB wrapper
malc [Fri, 11 Jun 2021 07:19:55 +0000 (11 10:19 +0300)]
EPUB wrapper

To use different font (i.e. not Charis SIL)

3 years agoConsistent formatting
malc [Thu, 10 Jun 2021 09:23:21 +0000 (10 12:23 +0300)]
Consistent formatting

3 years agoRemove script to work around tearing
malc [Tue, 8 Jun 2021 22:25:17 +0000 (9 01:25 +0300)]
Remove script to work around tearing

It was:
 1. intel/DDX specific
 2. annoying when debugging is required

3 years agoMove wikipedi helpers into snippets
malc [Tue, 8 Jun 2021 22:21:10 +0000 (9 01:21 +0300)]
Move wikipedi helpers into snippets

3 years agoUse proper command for error messages (emsg)
malc [Sat, 5 Jun 2021 22:55:03 +0000 (6 01:55 +0300)]
Use proper command for error messages (emsg)

3 years agoAdd -u, remove braces, manage fallout
malc [Sat, 5 Jun 2021 05:20:00 +0000 (5 08:20 +0300)]
Add -u, remove braces, manage fallout

3 years agoRemove font converter
malc [Sat, 5 Jun 2021 05:03:52 +0000 (5 08:03 +0300)]
Remove font converter

https://github.com/moosotc/snippets/blob/master/bin/fontview

3 years agoMore kerning
malc [Fri, 4 Jun 2021 19:26:47 +0000 (4 22:26 +0300)]
More kerning

Irked while reading a paper typeset in Computer Modern.

3 years agoIncorporate iosovka's legibility matrix
malc [Fri, 4 Jun 2021 17:06:27 +0000 (4 20:06 +0300)]
Incorporate iosovka's legibility matrix

https://github.com/be5invis/Iosevka/blob/master/sample-text/legibility-test-matrix.txt

3 years agoOh, oh, zero!
malc [Fri, 4 Jun 2021 17:01:42 +0000 (4 20:01 +0300)]
Oh, oh, zero!

Inspired by eponmous paper by Charles Bigelow [1]
Alos cf [2]

[1] https://tug.org/TUGboat/tb34-2/tb107bigelow-zero.pdf
[2] https://github.com/source-foundry/Hack/issues/200#issuecomment-312452961

3 years agoChange shuffstr a bit and show it verbatim too
malc [Fri, 4 Jun 2021 11:52:15 +0000 (4 14:52 +0300)]
Change shuffstr a bit and show it verbatim too

3 years agoNB
malc [Fri, 4 Jun 2021 11:51:46 +0000 (4 14:51 +0300)]
NB

3 years agoSync with upstream
malc [Wed, 2 Jun 2021 18:07:22 +0000 (2 21:07 +0300)]
Sync with upstream

3 years agoShow non-shuffled string with similar shopes too
malc [Wed, 2 Jun 2021 18:07:05 +0000 (2 21:07 +0300)]
Show non-shuffled string with similar shopes too

3 years agoHandle errors and notify the user while trying to save an attachment
malc [Mon, 31 May 2021 17:10:52 +0000 (31 20:10 +0300)]
Handle errors and notify the user while trying to save an attachment

3 years agoSave attached files when
malc [Mon, 31 May 2021 11:54:34 +0000 (31 14:54 +0300)]
Save attached files when

C code was mostly copy pasted from
$MUPDF/platform/gl/gl-annotate.c:save_attachment_dialog

This piggybacks on existing savepath-command.

Testing was done when savepath-command was set to "echo '%s'" and a
document from https://github.com/moosotc/llpp/issues/170 [1]. The
annotation rectangles an the fifth page overlap making it impossible
to use mouse to click on the icon with a pin (file attachment
annotation), however one can enter keyboard navigation mode (set to
insert by default) and select last/covered annotation rectangle with
the keyboard) (selecting this annotation via hint mode (bound to 'F'
by default) works too)

[1] https://github.com/moosotc/llpp/files/6566150/CorrectionLEMAIRE_SAKURA.AMELIE_CPFR_DEV02.pdf

3 years agoCosmetics
malc [Mon, 31 May 2021 04:42:55 +0000 (31 07:42 +0300)]
Cosmetics

3 years agoBetter text/file-attachment annotation differentiation
malc [Mon, 31 May 2021 04:39:10 +0000 (31 07:39 +0300)]
Better text/file-attachment annotation differentiation

3 years agoRemove stray spaces
malc [Sun, 30 May 2021 18:39:09 +0000 (30 21:39 +0300)]
Remove stray spaces

3 years agoUse properly typed annot variable
malc [Sun, 30 May 2021 14:00:26 +0000 (30 17:00 +0300)]
Use properly typed annot variable

Some background: https://github.com/moosotc/llpp/issues/170

3 years agoPrint file attachment annotation info
malc [Sun, 30 May 2021 13:53:32 +0000 (30 16:53 +0300)]
Print file attachment annotation info

This will, at least, allow user to notice their presence and use more
apt application to extract those attachments.

3 years agoDecrease indentation of reflowable layout knobs
malc [Sun, 30 May 2021 11:20:31 +0000 (30 14:20 +0300)]
Decrease indentation of reflowable layout knobs

3 years agoHack around intermittent postprocess failures
malc [Sun, 30 May 2021 11:18:55 +0000 (30 14:18 +0300)]
Hack around intermittent postprocess failures

How it was found:

An attempt was made to search for 'a' in an infinitely tall document
(HTML font test page produced by llppac with
  Extended parameters » reflowable Layout » height
 set to zero)

Searching took surprisingly long time. At some point ml_postprocess
was trying to acquire the lock, failed, schedulled a redisplay, which
failed because concurently running earch was holding it), tho "fix" is
to not even attempt postprocessing.

Maybe someday enough courage will be found to tackle the problem
"properly".

3 years agoDo not sefgfault on "empty" regexec results
malc [Sun, 30 May 2021 11:04:43 +0000 (30 14:04 +0300)]
Do not sefgfault on "empty" regexec results

Searching for $ for instance.

3 years agoUse Glutils explicitly in main
malc [Sun, 30 May 2021 09:28:53 +0000 (30 12:28 +0300)]
Use Glutils explicitly in main

3 years agoFree memory before branching
malc [Sun, 30 May 2021 07:09:09 +0000 (30 10:09 +0300)]
Free memory before branching

3 years agoAdd another La.. example
malc [Thu, 27 May 2021 22:33:57 +0000 (28 01:33 +0300)]
Add another La.. example

For some reason this one rubs me the wrong way in Charis Sil.

3 years agoMove ||: inside the subshell
malc [Thu, 27 May 2021 17:55:12 +0000 (27 20:55 +0300)]
Move ||: inside the subshell

3 years agoGenerate set of similar characters dynamically
malc [Thu, 27 May 2021 17:50:48 +0000 (27 20:50 +0300)]
Generate set of similar characters dynamically

3 years agoUse local exception instead of globally usable Exit
malc [Tue, 25 May 2021 00:46:29 +0000 (25 03:46 +0300)]
Use local exception instead of globally usable Exit

3 years agoSimplify layoutready
malc [Mon, 24 May 2021 21:38:02 +0000 (25 00:38 +0300)]
Simplify layoutready

Layout is ready when all the tiles comprising it are rendered.

3 years agoCosmetics
malc [Mon, 24 May 2021 20:52:47 +0000 (24 23:52 +0300)]
Cosmetics

3 years agoContinue lines properly
malc [Mon, 24 May 2021 15:55:09 +0000 (24 18:55 +0300)]
Continue lines properly

As for -layout-height - in setup mode one can set
  Extended Parameters/reflowable layout/height
to zero and have infinitely tall font showcase.

3 years agoAdd another mime type for fonts
malc [Mon, 24 May 2021 15:46:03 +0000 (24 18:46 +0300)]
Add another mime type for fonts

3 years agoRemove -layout-height
malc [Mon, 24 May 2021 15:16:33 +0000 (24 18:16 +0300)]
Remove -layout-height

Yet the ability to show fonts without artificial pagination should be
possible... Head scratching time3

3 years agoProvide flags for wsi.cmi
malc [Mon, 24 May 2021 15:15:13 +0000 (24 18:15 +0300)]
Provide flags for wsi.cmi

Given that wsi/x11/wsi.mli was resurrected.

3 years agoBring back wsi.mli
malc [Mon, 24 May 2021 03:51:30 +0000 (24 06:51 +0300)]
Bring back wsi.mli

Original raison d'être for wsi.mli and all the pains it entailed was
the ability to forego transitive compilation of the dependencies when
only minute details inside wsi.ml were changed, this restores this
ability for x11's wsi. Guess CI bots will tell we whether things still
work for cocoa.

3 years agoChange state from record with mutable fields to module with refs
malc [Sun, 23 May 2021 21:51:23 +0000 (24 00:51 +0300)]
Change state from record with mutable fields to module with refs

TODO: cocoa

3 years agoSlipped through the cracks
malc [Sun, 23 May 2021 21:02:04 +0000 (24 00:02 +0300)]
Slipped through the cracks

3 years agoContinue fighting implicit creation of compiled interface files
malc [Sun, 23 May 2021 19:59:52 +0000 (23 22:59 +0300)]
Continue fighting implicit creation of compiled interface files

By (sadly) not using wsi.mli at all. ocamlc refuses to play ball when
interface is not in the same directory with the implementation [1],
and symlinking:

  causes cognitive dissonance
  is fragile in presence of PBMAC

[1] misc/notes/cmi.sh describes the problem (removed by this commit)

3 years agoFixing broken symlink
Alexander Pozdnyakov [Sun, 23 May 2021 18:52:58 +0000 (23 21:52 +0300)]
Fixing broken symlink

3 years agoDo not use, no longer existing, -layout-height argument
malc [Sun, 23 May 2021 10:37:43 +0000 (23 13:37 +0300)]
Do not use, no longer existing, -layout-height argument

3 years agoMake sure there are no progress indicator remnants in the text area
malc [Sun, 23 May 2021 09:44:09 +0000 (23 12:44 +0300)]
Make sure there are no progress indicator remnants in the text area

This is a variation on d4c080874b641218f6c8bba84f509ae50a87452b theme.

3 years agoTake layout defaults from mupdf
malc [Sun, 23 May 2021 09:41:08 +0000 (23 12:41 +0300)]
Take layout defaults from mupdf

3 years agoChange reflowable layout handling
malc [Sun, 23 May 2021 08:36:04 +0000 (23 11:36 +0300)]
Change reflowable layout handling

Move control over reflowable layout parameters out of the command line
into the info screen. This also moved the parameters from state into
config, thus making them persistent.

3 years agoRemove remnants of home row remapping attempt
malc [Sun, 23 May 2021 07:52:56 +0000 (23 10:52 +0300)]
Remove remnants of home row remapping attempt

3 years agoCosmetics
malc [Sat, 22 May 2021 18:48:14 +0000 (22 21:48 +0300)]
Cosmetics

3 years agoAllow setting all fz_layout_document arguments on the command line
malc [Sat, 22 May 2021 17:39:32 +0000 (22 20:39 +0300)]
Allow setting all fz_layout_document arguments on the command line

Use case:
 a epub with a text that is laid out too wide (for me)

 [grantted - it is s possible to just go and edit the .css inside the
  .epub but this is, arguably, a better approach

  besides layout-height Arg docstring was, probably, incorrect]

3 years agoRemove opaque<->string operators
malc [Sun, 2 May 2021 07:51:13 +0000 (2 10:51 +0300)]
Remove opaque<->string operators

3 years agoAdd "interesting" sequence of letters
malc [Sun, 2 May 2021 06:30:55 +0000 (2 09:30 +0300)]
Add "interesting" sequence of letters

3 years agoUse helper functions to extract page numbers from uris
malc [Sun, 2 May 2021 06:30:04 +0000 (2 09:30 +0300)]
Use helper functions to extract page numbers from uris

The change upstream went unnoticed because the old way continued to
build (and work, in case of PDFs at least).

This should address
https://github.com/moosotc/llpp/issues/167 (and 168)

3 years agoAnother kerning sample
malc [Wed, 28 Apr 2021 16:10:05 +0000 (28 19:10 +0300)]
Another kerning sample

Kurinto News Core

3 years agoAvoid extra leading space in case of empty include list
malc [Mon, 19 Apr 2021 20:58:19 +0000 (19 23:58 +0300)]
Avoid extra leading space in case of empty include list

3 years agoAdd interface for utils module
malc [Mon, 19 Apr 2021 19:24:24 +0000 (19 22:24 +0300)]
Add interface for utils module

3 years agoDo not add $outd/ prefix to ocaml modules while generating makefile
malc [Sun, 18 Apr 2021 00:30:10 +0000 (18 03:30 +0300)]
Do not add $outd/ prefix to ocaml modules while generating makefile

3 years agoComment on parallelism todo entry
malc [Sat, 17 Apr 2021 20:57:14 +0000 (17 23:57 +0300)]
Comment on parallelism todo entry

3 years agoFix makefile generation
malc [Sat, 17 Apr 2021 20:50:36 +0000 (17 23:50 +0300)]
Fix makefile generation

3 years agoSync with upstream
malc [Sat, 17 Apr 2021 08:12:28 +0000 (17 11:12 +0300)]
Sync with upstream

cf. https://bugs.ghostscript.com/show_bug.cgi?id=703789

3 years agoFix dependency regression introduced in c6fc00b5e88813e0510b2ae76fb838c21648d36d
malc [Fri, 16 Apr 2021 20:44:42 +0000 (16 23:44 +0300)]
Fix dependency regression introduced in c6fc00b5e88813e0510b2ae76fb838c21648d36d

3 years agoFix types
malc [Fri, 16 Apr 2021 20:20:49 +0000 (16 23:20 +0300)]
Fix types

Points to the flaw in interface dependency management.

3 years agoTrim autogenerated uiutils interface by hand
malc [Fri, 16 Apr 2021 19:57:11 +0000 (16 22:57 +0300)]
Trim autogenerated uiutils interface by hand

3 years agoConsistency
malc [Fri, 16 Apr 2021 19:47:13 +0000 (16 22:47 +0300)]
Consistency

3 years agoRemove tautological interface
malc [Fri, 16 Apr 2021 19:35:51 +0000 (16 22:35 +0300)]
Remove tautological interface

ffi.mli == ffi.ml.

TODO: It would have been more aesthetically pleasing to have ffi.mli
and no ffi.ml.