Skip to content

Conversation

@RaiKoHoff
Copy link
Collaborator

No description provided.

…is will lead to problems on changing encoding)
- standard encoding is ANSI, (resp. UTF8 - if no(-1) encoding default is given in .ini-file: DefaultEncoding=n)
- copy/paste non ANSI characters to ANSI encoded NP3 windo will recode them to ANSI (same as manually recode)
…nd Ctrl-X if nothing is selected (copy / cut current line)
- using Scintilla UTF8 code-page internally for most encodings,
  solves some encoding/code-page problems, the behaviour slightly changes:

  + if DefaultEncoding is not set (or set to DefaultEncoding = -1),
    initial encoding is set to current system's code-page, e.g. Windows-1252
    Scintilla's internal UTF8 code-page is used for edit box,
    that means copy/paste from clipboard may show characters which are
    not valid in this char-set of the selected code-page.
    Trying to save a file with this invalid UTF8 chars will result in conversion dialog:
    ("...  encoding from ANSI to non-ANSI (and vice versa) may replace unsupported text with default characters ...")

 + if DeaultEncoding = 0 (ANSI):
   a) if LoadASCIIasUTF8 = 0 (FALSE), Scintilla's internal ANSI code-page is used for edit box
      that means copy/paste from clipboard may convert chars to ANSI ()
   b) if LoadASCIIasUTF8 = 1 (TRUE), Scintilla's internal UTF8 code-page is used for edit box
    that means the universal UTF8 encoding is used

 + if DeaultEncoding = nnn (corresponding to some ANSI code-page encoding):
   same as if DefaultEncoding is set to corresponding code-page (see section "DefaultEncoding is not set")
- consistent encoding <> code-page handling (including Scintilla's code-page settings)
- Scintilla issue regarding notepad2-mod issie rizonesoft#173 (see XhmikosR/notepad2-mod#193)
- allow arbitrary conversion between encodings (even it it does not make sense in any case)
  (instead of doing silently nothing but changing encoding info on status bar)
- Settings:  SciDirectWriteTech, SciFontQuality
  + values according to Scintilla documentation
  + values = -1 (or not set) - don't call SCI API anyway - should be the same as DEFAULT technology settings (values = 0)
      SC_TECHNOLOGY_DEFAULT = 0,  SC_TECHNOLOGY_DIRECTWRITE = 1,  SC_TECHNOLOGY_DIRECTWRITERETAIN = 2,  SC_TECHNOLOGY_DIRECTWRITEDC = 3
      SC_EFF_QUALITY_DEFAULT = 0, SC_EFF_QUALITY_NON_ANTIALIASED = 1, SC_EFF_QUALITY_ANTIALIASED = 2, SC_EFF_QUALITY_LCD_OPTIMIZED = 3
@rizonesoft rizonesoft merged commit 9723493 into rizonesoft:master Aug 6, 2017
@RaiKoHoff
Copy link
Collaborator Author

@RaiKoHoff
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants