Bug 123507 - macOS: Insufficient context sensitive help
Summary: macOS: Insufficient context sensitive help
Status: RESOLVED DUPLICATE of bug 122355
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-17 01:55 UTC by Menno Cornelßen
Modified: 2019-02-17 06:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Menno Cornelßen 2019-02-17 01:55:58 UTC
Description:
After correction of languages.js (see Comment # 10 on bug 121532 from Stephan Bergmann):

WRITER —> Format —> Paragraph... —> Text Flow tab —> Help invokes the

Browser —> file:///Applications/LibreOffice.app/Contents/Resources/help/index.html?Target=swriter/modules/swriter/ui/paradialog/help&Language=en-US&System=MAC&Version=6.2

I get the page "Welcome to the LibreOffice Writer Help" and have to follow several links to reach the help for the Text Flow tab:

Browser —> Welcome to the LibreOffice Writer Help
           (file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/swriter/main0000.html?System=MAC&DbPAR=WRITER)
        —> Menus
           (file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/swriter/main0100.html?&DbPAR=WRITER&System=MAC)
        —> Format
           (file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/swriter/main0105.html?&DbPAR=WRITER&System=MAC)
        —> Paragraph
           (file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/shared/01/05030000.html?&DbPAR=WRITER&System=MAC)
        —> Text Flow
           (file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/swriter/01/05030200.html?&DbPAR=WRITER&System=MAC)

My analysis:

(1) The "Help" isn't context sensitive for ALL Paragraph... tabs
(2) For some other menus I get correct help (e.g. Table —> Insert Table...)
(3) file:///Applications/LibreOffice.app/Contents/Resources/help/hid2file.js seems to be outdated

In file:///Applications/LibreOffice.app/Contents/Resources/help/index.html —>

        var bookmark = target.slice(target.indexOf('/') + 1, target.length);
        var file = hid2fileMap[bookmark];
        // check first if a root bookmark @@nowidget@@ can be used
        if (file === undefined) {
            var b2 = bookmark.substring(0, bookmark.lastIndexOf("/")) + '/@@nowidget@@';
            file = hid2fileMap[b2];
        }

The problem: Bookmarks “modules/swriter/ui/paradialog/help“
             and       “modules/swriter/ui/paradialog/@@nowidget@@“

are undefined in hid2fileMap[] (defined in file:///Applications/LibreOffice.app/Contents/Resources/help/hid2file.js)
and therefore var file is undefined and the default var newURL = lang + '/' + defaultFile + '?System=' + system + '&DbPAR=' + module
(with var defaultFile = 'text/swriter/main0000.html' and var module = "WRITER") will be invoked.

In hid2fileMap[] there are 18 tags referencing text/swriter/01/05030200.html, but all are “cui/ui/textflowpage/...“ and not “modules/swriter/ui/paradialog/...“.


By the way: WRITER —> Table —> Insert Table... —> Help invokes the

Browser —> file:///Applications/LibreOffice.app/Contents/Resources/help/index.html?Target=swriter/modules/swriter/ui/inserttable/help&Language=en-US&System=MAC&Version=6.2

ending in the correct file

        —> file:///Applications/LibreOffice.app/Contents/Resources/help/en-US/text/swriter/01/04150000.html?System=MAC&DbPAR=WRITER&HID=modules/swriter/ui/inserttable/help#bm_@@nowidget@@

I have checked some other helps: Some show help for the appropriate context, a lot others end in the page "Welcome to the LibreOffice Writer Help".

Steps to Reproduce:
1.Start LO WRITER
2.Menu Format --> Paragraph... --> Text Flow tab --> Help

(The Actual Result is wrong for ALL tabs!)

Actual Results:
Page "Welcome to the LibreOffice Writer Help"

Expected Results:
Page "Text Flow"


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice Version: 6.2.0.3
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 2; OS: Mac OS X 10.11.6; UI render: default; VCL: osx; 
Locale: de-DE (de.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 russell 2019-02-17 02:41:11 UTC
Same as
Bug 122355 - HELP button in Format Cells no longer opens help on Format Cells (it opens top of Help)
Comment 2 raal 2019-02-17 06:49:13 UTC
Hello,

Thank you for submitting the bug. The bug has previously been reported, so this bug will be added as a duplicate of it. You will automatically be CCed to updates made to the other bug.

*** This bug has been marked as a duplicate of bug 122355 ***