Closed mikolysz closed 1 month ago
I'd need to look into the latter points, but as for screen layout, this is rather the point of screen layout: to make sure that content is rendered into lines as displayed on screen. If you turn off screen layout, you're choosing to render different elements on different lines, regardless of their intended rendering. In these code snippets, each chunk of text is a different element.
So why it doesn't happen anywhere on the web and it happens in each chm file? I prefer to have screen-layout turned off to make links easier to find, however, it greatly complicates reading code and is rather unintuitive, surprising and definitely not what most users expect, maybe except from those deeply familiar with the inner workings of chm. W dniu 2017-01-08 o 22:57, James Teh pisze:
I'd need to look into the latter points, but as for screen layout, this is rather the point of screen layout: to make sure that content is rendered into lines as displayed on screen. If you turn off screen layout, you're choosing to render different elements on different lines, regardless of their intended rendering. In these code snippets, each chunk of text is a different element.
Hi guys,
I have some other problems when opening chm files.
I'm using Microsoft Windows [Version 10.0.17134.48] X64 and the most recent master snapshot of NVDA.
When I open a chm file, the table of contents is displayed fine; but then I hit Enter on a heading and hit F6 to view the virtual document, "unknown" is displayed in Braille. The developer Info of he UNKNOWN Object looks like this:
INFO - globalCommands.GlobalCommands.script_navigatorObject_devInfo (09:14:36.637): Developer info for navigator object: name: None role: ROLE_UNKNOWN states: STATE_FOCUSABLE, STATE_FOCUSED isFocusable: True hasFocus: True Python object: <NVDAObjects.IAccessible.ContentGenericClient object at 0x052A3630> Python class mro: (<class 'NVDAObjects.IAccessible.ContentGenericClient'>, <class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'documentBase.TextContainerObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>) description: None location: (324, 63, 1276, 837) value: u'' appModule: <'appModuleHandler' (appName u'hh', process ID 6360) at address 5272e90> appModule.productName: u'HTML-Hilfe' appModule.productVersion: u'10.0.17134.46' TextInfo: <class 'displayModel.DisplayModelTextInfo'> windowHandle: 12389794 windowClassName: u'Shell Embedding' windowControlID: 0 windowStyle: 1442906112 windowThreadID: 7256 windowText: u'' displayText: u'' IAccessibleObject: <POINTER(IAccessible) ptr=0x7cf6c8 at 520d4e0> IAccessibleChildID: 0 IAccessible event parameters: windowHandle=12389794, objectID=-4, childID=0 IAccessible accName: None IAccessible accRole: ROLE_SYSTEM_CLIENT IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048580) IAccessible accDescription: None IAccessible accValue: None
For my tests, I use the most recent version of the windows faq, which is available from www.winfaq.de.
happy fixing:-).
Dave
Is this the only file with which you are having trouble? DO you have comparison data with other CHM files?
@dave090679, @devil418, are you still having this issue?
We didn't get any updates upon request since many years from people who reproduced this issue in the past. Closing as abandoned. If you are still having this issue, please comment and we can reopen.
nvda has some problems when reading chm files (with the default viewer build into windows)
when "use screen layout when supported" is disabled, source code is shown improperly. A good example of this behaviour is python's documentation file located in your_python_installation_directory\doc\pythonxxxx.chm. All text except source code is rendered as expected, but source is broken into many lines wherever possible. it looks like this: x
int ( raw_input ( "please enter an integer: " )) and it should look like this: x = int(raw_input("Please enter an integer: ")) This is similar to what sometimes happens when you view a document in notepad, you have word wrap enabled and the window is not maximized.