docs: manual, news updates

This commit is contained in:
Simon Michael 2011-01-21 03:45:47 +00:00
parent 61547445f4
commit 1933f0cd13
2 changed files with 45 additions and 23 deletions

View File

@ -204,13 +204,13 @@ number of transactions, each describing a transfer of money (or
any commodity) between two or more named accounts, in a simple any commodity) between two or more named accounts, in a simple
format readable by both hledger and humans. format readable by both hledger and humans.
You can use hledger without learning any more about this file; just You can use hledger without learning any more about this file; just use
use the [add](#add) or [web](#web) commands. the [add](#add) or [web](#web) commands. Many users, though, edit the
journal file directly with a text editor (perhaps using emacs' or vi's
helper modes). This is a distinguishing feature of hledger and c++ ledger.
Many users, though, edit the journal file directly with a text hledger's file format aims to be [compatible](#file-format-compatibility)
editor. This is a distinguishing feature of hledger (and c++ ledger.) with c++ ledger, so you can use both tools on your journal.
You can even do this while the web interface is running, and see the
changes right away.
Here's an example: Here's an example:
@ -237,26 +237,44 @@ Here's an example:
liabilities:debts $1 liabilities:debts $1
assets:bank:checking assets:bank:checking
Each transaction has a date, optional description, and two or more ### Transactions
postings, of some amount to some account. The amounts within a transaction must balance,
ie add up to 0. Or, you can leave one amount blank and it will be inferred.
Account names typically have several parts separated by a colon, from Each transaction begins with a date in column 0, followed by an optional
which hledger will derive a hierarchical chart of accounts. Account names description, then two or more postings (of some amount to some account),
may contain single spaces. each on their own line.
After the account name, separated by at least *two* spaces, there is The posting amounts within a transaction must always balance, ie add up to
0. You can leave one amount blank and it will be inferred.
### Account names
Account names typically have several parts separated by a full colon, from
which hledger derives a hierarchical chart of accounts. They can be
anything you like, but in finance there are traditionally five top-level
accounts: `assets`, `liabilities`, `income`, `expenses`, and `equity`.
Account names may contain single spaces, eg: `assets:accounts receivable`.
### Amounts
After the account name, separated by *two or more spaces*, there is
usually an amount. This is a number, optionally with a currency symbol or usually an amount. This is a number, optionally with a currency symbol or
commodity name on either the left or right. Commodity names which contain commodity name on either the left or right. Commodity names which contain
more than just letters should be enclosed in double quotes. Negative more than just letters should be enclosed in double quotes.
amounts usually have the minus sign next to the number (`$-1`), but it may
also go before a currency symbol/commodity name (`-$1`). The number may
optionally have a decimal point and/or digit group separators (`.` and `,`
or vice-versa).
hledger's file format aims to be compatible with c++ ledger, so you Negative amounts usually have the minus sign next to the number: `$-1`.
can use both tools on your journal. For more details, see [File format Or it may go before the symbol: `-$1`.
compatibility](#file-format-compatibility).
The number may optionally have a decimal point, either a period (`.`) or a
comma (`,`). hledger's reports will generally use the highest precision
you have used in each commodity.
Numbers may also have digit group separators, eg thousands separators.
hledger's reports will follow the digit groups you have used. The
separator character is either comma or period - whichever one you did not
use as a decimal point. If using digit group separators you should write
at least one number with a decimal point, so hledger will know which is
which. Eg: `1,000.00` or `1.000,00`.
### Simple dates ### Simple dates

View File

@ -4,8 +4,9 @@ title: hledger news
# hledger news # hledger news
* installing: don't specify process version, too many problems
* installing: don't specify process version after all, too many problems * always read and write UTF-8, ignoring locale (#34)
* treat arguments as possibly-encoded platform strings, not unconditionally utf-8
* parsing: better international number format support, allowing comma as decimal point and flexible digit groups (#32) * parsing: better international number format support, allowing comma as decimal point and flexible digit groups (#32)
* parsing: support @@ syntax specifying total price * parsing: support @@ syntax specifying total price
* parsing: infer a conversion price in unpriced two-commodity transactions * parsing: infer a conversion price in unpriced two-commodity transactions
@ -15,6 +16,9 @@ title: hledger news
* histogram: honour the specified start or end dates * histogram: honour the specified start or end dates
* print: don't show a trailing space when description is blank * print: don't show a trailing space when description is blank
* web: allow filter patterns with spaces if quoted, like command line * web: allow filter patterns with spaces if quoted, like command line
* web: make edit form more cross-browser compatible, fixing it in firefox (#38)
* web: move hidden add/edit/import forms below main content to help text-mode browsers a bit (#33)
## 2010/12/6 hledger 0.13 ## 2010/12/6 hledger 0.13