Skip to content

Commit

Permalink
Preparing version 1.8.1 Beta 6
Browse files Browse the repository at this point in the history
  • Loading branch information
dpradov committed Dec 9, 2023
1 parent a53fcf1 commit 34035ae
Show file tree
Hide file tree
Showing 10 changed files with 766 additions and 12 deletions.
116 changes: 116 additions & 0 deletions doc/Changes in 1.8.1 Beta1-6.txt
@@ -0,0 +1,116 @@

Changes in 1.8.1 Beta 1 - Beta 6 (11 nov 2023 -- 09 dec 2023)
=================================

* NEW: Significant improvement in image management
- Support for GIF, PNG, JPG, TIF, BMP, WMF, EMF and ICO
- Several image storage options: EmbeddedRTF, EmbeddedKNT, External (Zip or Folder), ExternalAndEmbeddedKNT
- Image viewer
- It is possible to change the visibility of the images in the file
Options:
* ImgDefaultFormatFromClipb, ImgRatioSizePngVsJPG, ImgCompressionQuality, ImgBmpPixelFormat
* ImgFormatInsideRTF
* ImgMaxAutoWidthGoal
* ImgDefaultLinkMode, ImgLinkRelativePath
* ImgUseRecycleBin
* ImgSaveInSubfolders, Keep original file name
* ImgSingleViewerInstance, ImgHotTrackViewer, ImgViewerPath

** A detailed explanation of the image management changes is available in "Images_Readme.txt"

* Drag and drop directly to Editor's content
Now it is possible to drag and drop any file into the editor's own content, in a specific position.
- A new option is offered from the import window: "Insert content at caret position"


* Added option to replace bullets by alternative string when pasting as plain text

By default, Windows replace bullets by a symbol in Cambria Math (something like a big point) plus a tab character
In RTF it is of the form:
\f1\u10625?\f0\tab One
\f1\u10625?\f0\tab Two

With the new option is possible to replace the symbol and tab characters by other text. By default it is set to "" (empty string)
but can be configured (in keynote.ini) with something like " - ", for example.

[EditorOptions]
...
BulletsInPlainText=" - "

Issue related: #612 don't copy bullets to other apps


* Improvements for profiles management | Profiles\Default | Profiles macros
The following improvements have been incorporated to better organize the different files that are used in each profile/session
(See the file 'Profiles.txt') :

- If KeyNote detects the presence of the "Profiles\Default" subfolder within the folder with the executable (keynote.exe), it will
search in that subfolder for the keynote.ini file and the rest of the files (and if they do not exist, it will add them to that
folder according to is requiring it)
The setup program will establish that subfolder to promote better organization of the files, avoiding mixing and confusing those
files with the rest of the application files and with the configurations of other profiles. The rest of the profiles should also
be created within the "Profiles" folder. Ex: "Profiles\F9"
The setup program will appropriately set the permissions for the Profiles folder.

- The notehead.rtf and nodehead.rtf files so far have not been specific to the profile configuration, but common to all.
From the new version it is possible to customize one or both files from a profile, adding them to the folder containing the
profile's .ini file. If one of these two files is not found in the profile folder, the application will use the one(s) located
in the main profile folder ("Profiles\Default" or the folder that contains the executable).

- If within the folder with the .ini files there is a subfolder called 'macros' (e.g. "Profiles\F9\macros"), the macros contained
therein will be loaded, taking preference over those loaded from the main macro folder (<exe folder>\macros)
- This allows to define different automatic execution macros in each configuration.
- When recording new macros it is possible to create them as general or specific to the profile


* Fixed: KNT could get hang doing a Search (Find Next or Find All) [IMPORTANT]
It would depend on the presence of several hidden marks in the editor (vinculated to new KNT links or images --since 1.8.1),
the distance between them and the length of the search term...
This error is present since version 1.8.0

* Fixed issue #617: Access violation on exit

Problem was related to the encoding of file .mgr
At the same time has been corrected the names of the files shown in File | Recent file
(similar problem, encoding of .mru file)

* Fixed issue #621: "Allow only one instance" not working

* Fixed: Text selection with Shift + left cursor is canceled when crossing a hidden mark

* Fixed: Convert '&quot;' to '"' in title from web pages
(Related to commit 'Titles from web pages: convert HTML Ascii codes' (5f9dc27e12))

* Fixed: newly added nodes do not respect the established zoom

* Fixed: New KNT Links could jump to an incorrect position

KNT links that point to a hidden mark look for a certain pattern and ID bookmark. When the application copies text to the
clipboard, it removes the hidden bookmarks. Not doing so could make that if we pasted the text above the one we were pointing to,
the link will find the hidden mark before the correct one. (On the contrary, the cutting operation does need that hidden mark.)

In normal situations, the hidden mark is maintained by the control RichEdit as we inserted it. But I have found that RichEdit
can alter some of them, adding control tags within the block that we have bounded between \v and \v0 (actually through {\v....} ).

(This is a problem only when we are looking for the hidden marks through RTF syntax. In most situations, KNT works directly with
hidden characters)

We may find that an added tag like:
... \v\''11B2\''12\v0 HELLO
it ends up appearing for example as:
\v\f0\fs16\lang3082\''11B2\''12\v0 HELLO

We must convert:
"\v\f0\fs16\lang3082\''11B2\''12\v0 HELLO" -> "\f0\fs16\lang3082 HELLO"

* Minor changes (mainly code style), minor correction in AlertMng

A small reduction in the size of the executable was obtained.


* Fixed: Possible exception on exporting (File | Copy To... or File | Export... with KNT format ) when including plaintext notes


* Improvement/correction to the RemoveKNTHIddenCharactersInRTF procedure
* Other minor adjustments

67 changes: 67 additions & 0 deletions doc/Changes in 1.8.1 Beta6.txt
@@ -0,0 +1,67 @@
Changes in 1.8.1 Beta 6 (09 dec 2023)
=======================

* Images. Added new ini option: ImgViewerPath
Allows to enter an absolute or relative (to keynote.exe) path to an external image viewer
As requested in https://github.com/dpradov/keynote-nf/issues/623#issuecomment-1824929978

* Image viewer: added shortcuts for zoom and scrolling
Zoom:
+ In
- Out
* 100%
/ Adjust
(From Numpad. +, - : if used with Ctrl : greater zoom ratio )

Scrolling:
Cursors (if used with Ctrl : greater scrolling)

Prior, Next : Up/down edge
Home, End : Left/right edge
Ctrl + Home : Upper left corner
Ctrl + End : Lower right corner

Notes:
* The increments are greater on Zoom in than on Zoom out
* Ctrl can also be used while clicking the zoom in and out buttons


* Fixed: Can be difficult to open images inside tables with the internal or an external viewer
Problem described here: https://github.com/dpradov/keynote-nf/issues/623#issuecomment-1845791606
It is possible to include images in the cells of a RTF table, but due to the behavior of the RichEdit control, it could be difficult
to open the image (by double clicking, or Ctr+double clicking) because in many cases not only the image is being selected but other
characters in the same cell or row of the board.
It was possible to open it, trying again, but difficult. In hidden images mode (seeing the link to the image) this problem does not
occur and has always worked correctly.
The application is modified to identify and address this situation. Images contained in tables can now be opened normally.

Important:
Images contained in table cells cannot be resized manually, the RichEdit control does not allow it (can be checked with WordPad).
Instead it will try to perform a drag and drop action. If the image is moved in this way, you will have to reposition it by cutting
and pasting or dragging it again, as you will not be able to Undo.
It is possible to modify the dimensions using the 'Restore image[s] proportions' option or by Alt+Click on the image button, while
selecting this image. If you need to set a size at will and not depend on the 'Max auto. width on insert', perhaps the simplest thing
is to cut and paste the image outside the table, resize it and then reposition it in the table.


* Improvements for profiles management | Profiles\Default | Profiles macros
The following improvements have been incorporated to better organize the different files that are used in each profile/session
(See the file 'Profiles.txt') :

- If KeyNote detects the presence of the "Profiles\Default" subfolder within the folder with the executable (keynote.exe), it will
search in that subfolder for the keynote.ini file and the rest of the files (and if they do not exist, it will add them to that
folder according to is requiring it)
The setup program will establish that subfolder to promote better organization of the files, avoiding mixing and confusing those
files with the rest of the application files and with the configurations of other profiles. The rest of the profiles should also
be created within the "Profiles" folder. Ex: "Profiles\F9"
The setup program will appropriately set the permissions for the Profiles folder.

- The notehead.rtf and nodehead.rtf files so far have not been specific to the profile configuration, but common to all.
From the new version it is possible to customize one or both files from a profile, adding them to the folder containing the
profile's .ini file. If one of these two files is not found in the profile folder, the application will use the one(s) located
in the main profile folder ("Profiles\Default" or the folder that contains the executable).

- If within the folder with the .ini files there is a subfolder called 'macros' (e.g. "Profiles\F9\macros"), the macros contained
therein will be loaded, taking preference over those loaded from the main macro folder (<exe folder>\macros)
- This allows to define different automatic execution macros in each configuration.
- When recording new macros it is possible to create them as general or specific to the profile

0 comments on commit 34035ae

Please sign in to comment.