-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
728910: Added more documentation for Budget Balance Sheet #327
base: stable
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice amendment, thanks!
A few notes:
-
This is —like the previous report in that file— the technical description of the report. So they would belong into
gnucash-docs/C/manual/ch_Reports.xml
Line 3775 in cacf2e8
<sect2 id="report-budget">
Do you think,you can move them there and add here a link
[…] <ulink url="&url-docs-C;manual/report-classes.html#report-budget"><quote>Budget Reports</quote> in the manual</ulink>
?
Ideally that is done in 2 commits- move the old report and add the link,
- add your new report.
-
a few notes inline.
C/guide/ch_budgets.xml
Outdated
<para>The Budgeted Balance Sheet is similar to the Balance Sheet (see <xref linkend="rpt_balancesheet"/>). Both show the assets, liabilities, and | ||
equity. The difference is that the Balance Sheet is based on historical data, and the | ||
<emphasis>budgeted</emphasis> balance sheet is based on the predictions made in the budget. The report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we are formalizing the docs —see Text conventions— can you mark the first part as abstract and the description as glosslist?
<abstract><para>The <guilabel>Budgeted Balance Sheet</guilabel> is […]
predictions made in the budget.</para></abstract>
<para>The report contains the following elements:
<glosslist>
<title>Elements of Budgeted Balance Sheet</title>
<glossentry>
<glossterm>>Assets Section</glossterm>
<glossdef>
<para>The value shown for each account […]
</para>
</glossdef>
</glossentry>
…
<glosslist>
See de/manual/ch_Tools_Assistants.xml for advanced usage of glosslists.
C/guide/ch_budgets.xml
Outdated
|
||
<itemizedlist> | ||
<listitem> | ||
<para><emphasis>Assets Section</emphasis> - The value shown for each account is its balance as of the start date of the selected budget, modified by the projected changes in this budget. So if all goes according to the budget, these balances would be the same as if you were to run a standard Balance Sheet as of the end date of the budget period. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After you finished your edts can you please run xmlformat over the file?
BTW runoff style (2 spaces after a full stop) is obsolete, but get also fixed by xmlformat.
C/guide/ch_budgets.xml
Outdated
</listitem> | ||
|
||
<listitem> | ||
<para><emphasis>Total Liabilities + Equity</emphasis> - Liabilities + Equity. Equals Total Assets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps use <equation
> also here?
C/guide/ch_budgets.xml
Outdated
<screen> | ||
New Retained Earnings (all projected expenses subtracted from all projected income, per this budget) | ||
- Allocated Assets (above) | ||
- New Liabilities</screen> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reverts commit 3648454.
@fellen , I think I've addressed your feedback. I'm not really liking how the equations are formatting: Maybe there's an easy way to make them look better? I'll keep tinkering with it. |
Use But better to describe it in words, e.g. "The sum of existing equity and new equity". And "Total Liabilities + Equity: Total Liabilities + Equity" is redundant. Use "self explanatory" instead. |
@jralls , yep, I like this better. Thanks! |
C/manual/ch_Reports.xml
Outdated
will show a $51/month gain instead of $100 (the projected assets/liabilities are | ||
right). This formula is: | ||
<informalequation> | ||
<mathphrase>Unallocated Assets = New Retained Earnings - Allocated Assets - New |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick from Hyphens and dashes
in Text conventions:
New Retained Earnings − Allocated Assets − New
There multiple other occurrences.
C/manual/ch_Reports.xml
Outdated
@@ -3095,7 +3095,7 @@ Income (type INCOME) | |||
</listitem> | |||
|
|||
<listitem> | |||
<para><guilabel>Report's currency</guilabel>: Select the currency to display the values in - see | |||
<para><guilabel>Report's currency</guilabel>: Select the currency to display the values in − see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution, this should be —
(—
or enter [AltGr]+[Shift]+[-]).
In this case it is obvisious by the following see …
.
[edit:] multiple occurrences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better to use the entity: It's both easier to enter (key combinations are localized and OS-specific) and especially in the case of —
(U+2014), –
(U+2013), −
, (U+2011), and ‐
(U+2010, non-breaking U+2011) and the ASCII hyphen-dash (U+002d) that are hard to tell apart in source strings.
But I think it's better still to avoid using any of them except −
in its arithmetic meaning because we want the documentation translated. Correct usage of the various dashes and hyphen in English can be so obscure that many native English speakers don't even know that there's a difference (it's wrong throughout this PR: −
is for arithmetic and shouldn't be used in a sentence). Expecting non-native English speakers to correctly understand and translate them is asking a lot. em-dashes are usually a substitute for parentheses. That's the case here, so (see <xref linkend="report-common"/>)
would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, @jralls . There seems to be regional differences. In german books parentheses are used in formulas, but rarely in text.
We should try to find some consent and update the wiki section, which was written by an Australian IIRC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Punctuation is very language specific. I wouldn't expect anything beyond full stops to transfer even between closely related languages like German, French, and English, never mind non-european ones. Even native speakers and writers of English have trouble with the finer points of punctuation, and there are lots of heated disputes about some practices, e.g. the Oxford comma. As it happens another hot dispute is how to set off a parenthetical expression. Sorry, I couldn't find a good reference for this, so here goes: The basic form that a lot of people think should be the only one is to use a pair of commas. The other inline choices are parentheses and em-dashes. One can also use footnotes or endnotes, an especially good idea if the aside will be lengthy.
The section in the wiki page about dashes just points to https://www.thepunctuationguide.com/index.html. I have no idea who wrote it but the sections are explanatory rather than style guidance. The flavor of English used by the original author doesn't seem important at least in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jralls and @fellen I'm fine continuing however you want with this bit of it, but I should mention that the changes outside the Budget Balance Sheet were inadvertent. I'd forgotten to limit the scope of my search/replace. Perhaps I should undo all these other changes? I'm not sure I want to be on the hook for this entire xml file at this time.
@@ -206,7 +206,7 @@ | |||
|
|||
<para>The budgeted balance sheet is similar to the balance sheet. Both show the assets, liabilities, and | |||
equity. The difference is that the balance sheet is based on historical data, and the | |||
<emphasis>budgeted</emphasis> balance sheet is based on the predictions made in the budget. | |||
<emphasis>budgeted</emphasis> balance sheet is based on the predictions made in the budget. For more details, see <ulink url="&url-docs-C;manual/report-classes.html#report-budget"><quote>Budget Reports</quote> in the manual</ulink> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO most of the <sect1 id="budget_reporting1">
is still descriptive and belongs into the manual. Here I would expect rules to get the best results from using the reports like e.g. At first use report x to check for input errors. Some common rules are …
C/manual/ch_Reports.xml
Outdated
@@ -359,8 +359,8 @@ | |||
</listitem> | |||
|
|||
<listitem> | |||
<para>Maximum Slices: Controls the maximum number of slices displayed in a piechart - other accounts will | |||
be placed in a slice marked Other. | |||
<para>Maximum Slices: Controls the maximum number of slices displayed in a piechart − other accounts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO … in a piechart. All other accounts …
is easier to understand.
<glossentry> | ||
<glossterm>Total Liabilities + Equity</glossterm> | ||
<glossdef> | ||
<para>Self Explanatory. This will equal Total Assets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… if the book is balanced.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… if the book is balanced.
Always. The Balance Sheet Report gets a book into balance by inserting a calculated Equity account, Unrealized Gains (or Losses depending on whether Equity is less or greater than Assets - Liabilities) to balance an out-of-balance book. Everything else in the report exactly reflects the balances in the accounts at the end of the selected date.
C/manual/ch_Reports.xml
Outdated
@@ -3843,81 +4015,83 @@ Income (type INCOME) | |||
|
|||
<itemizedlist> | |||
<listitem> | |||
<para><emphasis>Show budget</emphasis> - include the budgeted values for the period | |||
<para><emphasis>Show budget</emphasis> − include the budgeted values for the period |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think you can convert the itemzedlist into a glosslist and drop the -
? It seems the original author did not know variablelist or glosslist and used it as separator between the term and its explanation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fellen, I think you're driving massive overuse of <glosslist>
. As the docs say, "Using a GlossList in running text, instead of a VariableList, for example, maintains the semantic distinction of a Glossary. This distinction may be necessary if you want to automatically point to the members of the list with GlossTerms in the body of the text." A glossary is "a collection of textual glosses or of specialized terms with their meanings". That isn't even remotely related to what you're trying to use it for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this is my first review of a report. While in dialogs glosslists make sense because often one control depends on others. in reports the <variablelist>
might be sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"variablelist — A list in which each entry is composed of a set of one or more terms and an associated description" (Heh, complete with a misused emdash!)
That's no more applicable than glosslist
, not to dialogs and not to reports.
Plain old itemizedlist
is generally the right choice, but only so far as a list is appropriate. E.g.
<section>
<title>Assets</title>
<para>The first section of the report lists the asset accounts, displayed hierarchically, with their balances projected to the end of the budget period. At the end of the section &app; will print the following totals:
<itemizedlist>
<listitem><title>Existing assets</title><para>Sum of all selected account balances at the beginning of the budget period. This is what a Balance Sheet Report would report as total assets for the same selected accounts on that date.</para>
<!-- … -->
</itemizedlist>
</para>
</section>
While glosslist
and variablelist
assign the wrong semantic meaning in this case, even trying to wrap bits of documentation in semantic tags is a relic of the 1990s. The semantic web fantasy didn't pan out. Stop wasting everyone's time and just focus on getting the right words in place with a reasonable layout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea, but
C/manual/index.docbook:3792: element listitem: validity error : Element listitem content does not follow the DTD, expecting (calloutlist | glosslist | bibliolist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | synopsis | cmdsynopsis | funcsynopsis | classsynopsis | fieldsynopsis | constructorsynopsis | destructorsynopsis | methodsynopsis | formalpara | para | simpara | address | blockquote | graphic | graphicco | mediaobject | mediaobjectco | informalequation | informalexample | informalfigure | informaltable | equation | example | figure | table | msgset | procedure | sidebar | qandaset | task | anchor | bridgehead | remark | highlights | abstract | authorblurb | epigraph | indexterm | beginpage)+, got (title para )
Document /home/frank/git/gnucash-docs-old/C/manual/index.docbook does not validate
Normal lists allow no title in their elements, only for the whole list. That is the reason why we use lists with term and definition part. I assume we still want get rid of constructs like
<emphasis role="bold">Term</emphasis>, a changing combination of colons or dashs and spaces; Definition
a few more thoughts:
|
Apropos hyphens and dashes, using any of them in the form of |
Right, the list should be split in groups Assets, Liabilities, Equity |
Here is a stab at some better documentation for the Budgeted Balance Sheet.
Here's what it looks like:
Current Version of the doc.