Giter Club home page Giter Club logo

Comments (11)

cbucher avatar cbucher commented on August 19, 2024

In Console2 or ConsoleZ, rendering or selection use fixed size computation.
In a Unicode fixed size font, each chars in a same same character set seems have the same size. But when multiple character sets are mixed, this assumption is wrong.
Console2 doesn't force the width of each char, but truncate blocks (chars with same colors).
ConsoleZ force the width of each char to guarantee a perfect alignment.

Here a comparison between Console2 (left) and ConsoleZ (right):

capture001

You can see chars truncated, wrong alignment and bad selection of the string "employé de magasin".
That's why I fix the rendering.

The font metrics contain average width and max width. The average width is used (max width is really too big).
Japanese chars needs more space to a great display ... so what's size to use? Let the user choose the width?

from console.

minagi avatar minagi commented on August 19, 2024

I'm using font size "12". ([settings - Appearance - Font].)
snapcrab_noname_2013-7-3_2-57-54_no-00

from console.

cbucher avatar cbucher commented on August 19, 2024

Can you try this version : https://truck.it/p/xtnU0k8bUW
You can configure an extra width added to the fixed width of the font.
Go to Settings/Appearance/Font

capture

from console.

minagi avatar minagi commented on August 19, 2024

Thank you!
But, the alphabet is also unnaturally wide and it is hard to see it.
I wish to the same display as a "Console Window".

[related Problem]
When the Japanese character is contained in the path, a space enters before a caret. (red line)

  1. ConsoleZ Main Window (Extra width "4")
    snapcrab_noname_2013-7-14_3-39-32_no-00
  2. ConsoleZ Console Window ([View]-[Console Window])
    snapcrab_noname_2013-7-14_3-42-34_no-00

[workaround?]
I corrected as follows based on the source code of Console2.
diff: http://pastebin.com/GghztUrz
snapcrab_noname_2013-7-14_3-47-49_no-00
However, the caret has overlapped with the delimiter(">")...

from console.

cbucher avatar cbucher commented on August 19, 2024

ok you use a DBCS code page.
I think I have corrected the DBCS monospace display.
Can you try ? https://truck.it/p/7BX1-2TCNz

DBCS code page 932
capture2
capture4

SBCS code page 1252
capture3
capture6

from console.

minagi avatar minagi commented on August 19, 2024

Thank you for the correspondence.
I think that is displayed correctly most.

[Problem]
a "prolonged sound mark" overlaps and displayed. (red line)
"prolonged sound mark": Cho-On-Pu (Unicode: U+30FC), Wikipedia: http://en.wikipedia.org/wiki/Ch%C5%8Donpu

Main Window (Extra width "0"):
snapcrab_noname_2013-7-15_23-5-48_no-00

Console Window:
snapcrab_noname_2013-7-15_23-7-19_no-00

from console.

cbucher avatar cbucher commented on August 19, 2024

What is the font of the Console Window ? Raster font ? In this case, try with a true type font.

from console.

cbucher avatar cbucher commented on August 19, 2024

At home,
with raster font, DBCS attributes are missing for all chars:
capture9
Console Window draws Japanese chars on 2 cells but it does not match the contents of the buffer!

capture8

With True Type font, the result is better. But DBCS attributes are missing for some chars (like prolonged sound mark):
capture7
Console Window draws this char on 2 cells, but attributes are missing and selection is wrong.
Main Window draws this char on 1 cell and selection is right.

It seems there is a bug in Microsoft console API with DBCS.

from console.

minagi avatar minagi commented on August 19, 2024

I'm using the TrueType font (MS Gothic) in a console window.
snapcrab_console2 command window_2013-7-18_2-56-6_no-00
It seems to be difficult if the cause by which a prolonged sound mark is not displayed correctly is a console API bug...
Thank you for your support.

from console.

cbucher avatar cbucher commented on August 19, 2024

Hi,

I have successfully used the following workaround under Windows 7 and Windows 8.
Select the true type font and use a size greater than or equal to 20.

capture13

disadvantage:
In the console window, the maximum number of rows and columns is limited to the number of displayable characters on the main screen. Therefore, greater the font size is big and the greater the number of row and column is small.

from console.

minagi avatar minagi commented on August 19, 2024

Thank you for information of the workaround.
I made ​​sure that the problem of "prolonged sound mark" is resolved.

snapcrab_cmd_2013-8-2_3-24-15_no-00

from console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.