<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pdf-tools.git, branch v1.1.0</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/'/>
<entry>
<title>Bump pdf-tools version to v1.1.0</title>
<updated>2023-06-10T14:54:39+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-06-10T14:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=a9c9a12c3ecf2005fa641059368ac8284f507620'/>
<id>a9c9a12c3ecf2005fa641059368ac8284f507620</id>
<content type='text'>
This is necessary because the extensive changes in `epdfinfo` do not
get picked up by third party package management systems unless they
enter Melpa Stable.

This mismatch caused a number of issues, which I expect this bump will
now fix. Thanks to @cyrilarnould and @barslmn for pointing this out.

I am also using this bump to close long-open install issues. The idea
here is that these issues are being lost. I would rather everyone
upgrade to the latest versions of `pdf-tools` and `epdfinfo` and then
re-report the issues if they still exist.

Please note: as of this release, users are not expected to manually
set anything on their machines during installation. (for example:
`$PKG_CONFIG_PATH`). The installation should *just work*. If it does
not, please open a ticket so that we can track it.

Fixes: #213
Closes: #177
Closes: #216
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is necessary because the extensive changes in `epdfinfo` do not
get picked up by third party package management systems unless they
enter Melpa Stable.

This mismatch caused a number of issues, which I expect this bump will
now fix. Thanks to @cyrilarnould and @barslmn for pointing this out.

I am also using this bump to close long-open install issues. The idea
here is that these issues are being lost. I would rather everyone
upgrade to the latest versions of `pdf-tools` and `epdfinfo` and then
re-report the issues if they still exist.

Please note: as of this release, users are not expected to manually
set anything on their machines during installation. (for example:
`$PKG_CONFIG_PATH`). The installation should *just work*. If it does
not, please open a ticket so that we can track it.

Fixes: #213
Closes: #177
Closes: #216
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix: href styles in README.org</title>
<updated>2023-06-10T14:54:39+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-06-10T14:46:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=98ca40d870984dbae9a35f3b7456cde760d2e4c8'/>
<id>98ca40d870984dbae9a35f3b7456cde760d2e4c8</id>
<content type='text'>
The current href style was not working on Github, which is really
irritating. This commit fixes the issue.

Closes: #198
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current href style was not working on Github, which is really
irritating. This commit fixes the issue.

Closes: #198
</pre>
</div>
</content>
</entry>
<entry>
<title>Add hue contribution of background color to inverted midnight mode</title>
<updated>2023-06-10T14:35:15+00:00</updated>
<author>
<name>Zach Kost-Smith</name>
<email>smithzv@crouton.localdomain</email>
</author>
<published>2023-04-04T10:57:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=2ce864be00f5e34232ff33d2376b3219cdf66649'/>
<id>2ce864be00f5e34232ff33d2376b3219cdf66649</id>
<content type='text'>
From the comments in the PR, @smithzvk explains the changes:

 &gt; I was bugged that it didn't pick up the hue from the background,
 &gt; however, so I made the all color a/b parameters start from the a/b
 &gt; parameters of the BG color. This makes the PDF background (white)
 &gt; map to your BG color and PDF foreground (black) map to your FG
 &gt; color, which can be set to your theme background making it seem
 &gt; pretty seamless. Note that if you set your BG and FG to a color
 &gt; theme without zero saturation (a gray tone of some sort), then you
 &gt; recover the original behavior.
 &gt;
 &gt; I also reinstated the cached transforms for background and the last
 &gt; color computed.
 &gt;
 &gt; I also refactored the loop to move the switch statement outside of
 &gt; the loop. It is more repetitive, but it was needed to get rid of
 &gt; some warnings about potentially uninitialized variables. It should
 &gt; also be faster as the branch was removed from the loop.
 &gt;
 &gt; I also ditched the gamma correction as it seemed to be doing the
 &gt; wrong thing and I never had a theoretical reasoning for it. I can
 &gt; get similar results if I just set my BG color to something like
 &gt; gray5 instead of black. Barely a difference in background but the
 &gt; hinting on the fonts is showing again. The root of my issue may
 &gt; have always been some kind of display calibration issue.

Closes: #197
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From the comments in the PR, @smithzvk explains the changes:

 &gt; I was bugged that it didn't pick up the hue from the background,
 &gt; however, so I made the all color a/b parameters start from the a/b
 &gt; parameters of the BG color. This makes the PDF background (white)
 &gt; map to your BG color and PDF foreground (black) map to your FG
 &gt; color, which can be set to your theme background making it seem
 &gt; pretty seamless. Note that if you set your BG and FG to a color
 &gt; theme without zero saturation (a gray tone of some sort), then you
 &gt; recover the original behavior.
 &gt;
 &gt; I also reinstated the cached transforms for background and the last
 &gt; color computed.
 &gt;
 &gt; I also refactored the loop to move the switch statement outside of
 &gt; the loop. It is more repetitive, but it was needed to get rid of
 &gt; some warnings about potentially uninitialized variables. It should
 &gt; also be faster as the branch was removed from the loop.
 &gt;
 &gt; I also ditched the gamma correction as it seemed to be doing the
 &gt; wrong thing and I never had a theoretical reasoning for it. I can
 &gt; get similar results if I just set my BG color to something like
 &gt; gray5 instead of black. Barely a difference in background but the
 &gt; hinting on the fonts is showing again. The root of my issue may
 &gt; have always been some kind of display calibration issue.

Closes: #197
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix: high contrast render in midnight mode</title>
<updated>2023-06-10T14:35:15+00:00</updated>
<author>
<name>Zero</name>
<email>46195892+Atreyagaurav@users.noreply.github.com</email>
</author>
<published>2023-03-03T03:26:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=a99b8fd409284506fc6388f1a529f5b79e838842'/>
<id>a99b8fd409284506fc6388f1a529f5b79e838842</id>
<content type='text'>
Uses the Lightness values from the `pdf-view-midnight-colors` `fg` and
`bg` to scale the inverted color's lightness. Band-aid till better
method is found.

Relates to: #69
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Uses the Lightness values from the `pdf-view-midnight-colors` `fg` and
`bg` to scale the inverted color's lightness. Band-aid till better
method is found.

Relates to: #69
</pre>
</div>
</content>
</entry>
<entry>
<title>Change the circleci macos resource class</title>
<updated>2023-06-10T13:31:55+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-04-04T02:46:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=d076cc9c6e11e85d79aa372715986e8fc6fd2836'/>
<id>d076cc9c6e11e85d79aa372715986e8fc6fd2836</id>
<content type='text'>
The currently used "medium" one has been deprecated, as mentioned
here:
https://discuss.circleci.com/t/macos-resource-deprecation-update/46891
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The currently used "medium" one has been deprecated, as mentioned
here:
https://discuss.circleci.com/t/macos-resource-deprecation-update/46891
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure pixel-scroll-precision-mode deactivation</title>
<updated>2023-04-04T03:27:56+00:00</updated>
<author>
<name>Davide Masserut</name>
<email>dm@mssdvd.com</email>
</author>
<published>2023-04-02T19:48:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=7ff6293a25baaae65651b3e1c54b61208279a7ef'/>
<id>7ff6293a25baaae65651b3e1c54b61208279a7ef</id>
<content type='text'>
Setting `pixel-scroll-precision-mode` to nil is not sufficient to disable
the mode locally.

Updates: #124
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting `pixel-scroll-precision-mode` to nil is not sufficient to disable
the mode locally.

Updates: #124
</pre>
</div>
</content>
</entry>
<entry>
<title>Add `cairo-devel` to Void Linux package list</title>
<updated>2023-03-22T15:41:39+00:00</updated>
<author>
<name>João Paulo da Cruz</name>
<email>crzjp@riseup.net</email>
</author>
<published>2023-03-12T00:07:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=dea468796d7a20c7b28bc4360d0663cb1dc010fd'/>
<id>dea468796d7a20c7b28bc4360d0663cb1dc010fd</id>
<content type='text'>
In Void Linux most heading/development files are separated from the "main" packages and are stored on `${package-name}-devel`. The autobuild for Void fails because it tries to find `cairo-devel`, which contains `cairo`, respectives headers and other dependencies.

This Pull Request adds `cairo-devel` to the `PACKAGES` variable</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Void Linux most heading/development files are separated from the "main" packages and are stored on `${package-name}-devel`. The autobuild for Void fails because it tries to find `cairo-devel`, which contains `cairo`, respectives headers and other dependencies.

This Pull Request adds `cairo-devel` to the `PACKAGES` variable</pre>
</div>
</content>
</entry>
<entry>
<title>Change the default color inversion to maintain hue</title>
<updated>2023-01-17T06:32:14+00:00</updated>
<author>
<name>Vedang Manerikar</name>
<email>ved.manerikar@gmail.com</email>
</author>
<published>2023-01-17T06:32:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=bc2ba117e8c3196ff9adf0da4fa1e63a8da3d7c8'/>
<id>bc2ba117e8c3196ff9adf0da4fa1e63a8da3d7c8</id>
<content type='text'>
This commit enables @smithzvk's work in #69 as the default in
`pdf-tools`. It works well for all the PDFs I have tested with.

The previous behaviour can be enabled by setting
`pdf-view-midnight-invert` to `nil`, if required.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit enables @smithzvk's work in #69 as the default in
`pdf-tools`. It works well for all the PDFs I have tested with.

The previous behaviour can be enabled by setting
`pdf-view-midnight-invert` to `nil`, if required.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for midnight mode with color</title>
<updated>2023-01-17T05:06:51+00:00</updated>
<author>
<name>Zach Kost-Smith</name>
<email>zachkostsmith@gmail.com</email>
</author>
<published>2022-01-10T08:41:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=fdb187493fe6f10fea31a76daa98c07db591cd90'/>
<id>fdb187493fe6f10fea31a76daa98c07db591cd90</id>
<content type='text'>
This inversion method attempts to maintain the color hue and saturation but
inverts the lightness using the OKLab color space[^1].

[^1]: https://bottosson.github.io/posts/oklab/

* server/epdfinfo.c (image-recolor): Add feature to support the OKLab
inversion method functionality

* lisp/pdf-view.el (pdf-view-midnight-invert): Add new variable to
invert the image color lightness while maintaining hue.

(pdf-view-midnight-minor-mode): Account for above.

* lisp/pdf-info.el (pdf-info-query--parse-response): Handle changes to
:render/usecolors command

Closes: #69
Closes: #169
Closes: politza/pdf-tools#698
Closes: politza/pdf-tools#608
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This inversion method attempts to maintain the color hue and saturation but
inverts the lightness using the OKLab color space[^1].

[^1]: https://bottosson.github.io/posts/oklab/

* server/epdfinfo.c (image-recolor): Add feature to support the OKLab
inversion method functionality

* lisp/pdf-view.el (pdf-view-midnight-invert): Add new variable to
invert the image color lightness while maintaining hue.

(pdf-view-midnight-minor-mode): Account for above.

* lisp/pdf-info.el (pdf-info-query--parse-response): Handle changes to
:render/usecolors command

Closes: #69
Closes: #169
Closes: politza/pdf-tools#698
Closes: politza/pdf-tools#608
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a dedicated rotation command and keybinding</title>
<updated>2023-01-17T03:32:15+00:00</updated>
<author>
<name>Visuwesh</name>
<email>visuweshm@gmail.com</email>
</author>
<published>2022-10-24T11:40:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/pdf-tools.git/commit/?id=2037c52f127f3971e8f8bcd1a8874bcaa4c8f5ba'/>
<id>2037c52f127f3971e8f8bcd1a8874bcaa4c8f5ba</id>
<content type='text'>
We need a dedicated command for rotation since when `pdf-tools`
redisplays the image, the `:rotation` image-property is lost.
Pdf-tools redisplays the images when changing pages, zooming in/out,
setting the slice, etc. so this is essential to have.

A variable is used simply because `pdf-tools` already uses a variable to
keep track of the current scaling.

* lisp/pdf-view.el (pdf-view--current-rotation): Add new variable to
keep track of angle.
(pdf-view-create-page): Account for above.
(pdf-view-mode-map): Add the new command under "R".
(pdf-view-rotate): Add new command.

Fixes: #152
Closes: #165
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need a dedicated command for rotation since when `pdf-tools`
redisplays the image, the `:rotation` image-property is lost.
Pdf-tools redisplays the images when changing pages, zooming in/out,
setting the slice, etc. so this is essential to have.

A variable is used simply because `pdf-tools` already uses a variable to
keep track of the current scaling.

* lisp/pdf-view.el (pdf-view--current-rotation): Add new variable to
keep track of angle.
(pdf-view-create-page): Account for above.
(pdf-view-mode-map): Add the new command under "R".
(pdf-view-rotate): Add new command.

Fixes: #152
Closes: #165
</pre>
</div>
</content>
</entry>
</feed>
