<commit_before>--[[--This module is responsible for generating the quickstart guide.
]]
local DataStorage = require("datastorage")
local FileConverter = require("apps/filemanager/filemanagerconverter")
local Version = require("version")
local _ = require("gettext")
local lfs = require("libs/libkoreader-lfs")
local T = require("ffi/util").template

local QuickStart = {
    quickstart_force_show_version = 201511982,
}

local quickstart_shown_version = G_reader_settings:readSetting("quickstart_shown_version") or nil
local language = G_reader_settings:readSetting("language") or "en"
local version = Version:getNormalizedCurrentVersion()
local rev = Version:getCurrentRevision()

local quickstart_guide = T(_([[
# KOReader Quickstart Guide

Welcome to KOReader. You can activate the menu by swiping down from the top of the screen. Clicking outside the menu or swiping up on the menu will discard it. Turning pages can be done either by swiping left and right or by single taps on the left or right side of the screen.

**Contents**

* [main menu](#main-menu)
* [settings](#settings)
* [file browser](#file-browser)

## Main menu <a id="main-menu"></a>

![Menu](../resources/icons/menu-icon.png) You can always view this quickstart guide again through *Help* → *Quickstart guide* in the top right menu.

## Settings <a id="settings"></a>

![Settings](../resources/icons/appbar.settings.png) You can change the language and other settings through the gear icon.

## File browser <a id="file-browser"></a>

The file browser will only show document or ebook files that KOReader can read.

In the file browser, you can tap on any file to open it. Long press on any file to bring up a menu with more options. The location path display above the list of files and folders shows you which folder you're viewing. The `../` entry, at the top of the listed folders, lets you go *up* one level. For instance, if you are at `/mnt/onboard` now, tapping the `../` will bring you to `/mnt/`.

Once you have found the folder you have your books listed in, you can long press the selection that opens that folder and you should see a message box popup with the option to **Set as HOME directory**.

------------

Generated by KOReader %1.
]]),
    rev)<commit_msg>tweak quick start guide formatting<commit_after>--[[--This module is responsible for generating the quickstart guide.
]]
local DataStorage = require("datastorage")
local FileConverter = require("apps/filemanager/filemanagerconverter")
local Version = require("version")
local _ = require("gettext")
local lfs = require("libs/libkoreader-lfs")
local T = require("ffi/util").template

local QuickStart = {
    quickstart_force_show_version = 201511982,
}

local quickstart_shown_version = G_reader_settings:readSetting("quickstart_shown_version") or nil
local language = G_reader_settings:readSetting("language") or "en"
local version = Version:getNormalizedCurrentVersion()
local rev = Version:getCurrentRevision()

local quickstart_guide = T(_([[
# KOReader Quickstart Guide

Welcome to KOReader.

You can activate the menu by swiping down from the top of the screen. Clicking outside the menu or swiping up on the menu will discard it.

Turning pages can be done either by swiping left and right or by single taps on the left or right side of the screen.

### Contents

* [menu](#menu)
  * [main menu](#main-menu)
  * [settings](#settings)
* [file browser](#file-browser)


## Menu <a id="menu"></a>

### Main <a id="main-menu"></a>

![Menu](../resources/icons/menu-icon.png) You can always view this quickstart guide again through *Help* → *Quickstart guide* in the top right menu.

### Settings <a id="settings"></a>

![Settings](../resources/icons/appbar.settings.png) You can change the language and other settings through the gear icon.


## File browser <a id="file-browser"></a>

The file browser will only show document or ebook files that KOReader can read.

In the file browser, you can tap on any file to open it. Long press on any file to bring up a menu with more options. The location path display above the list of files and folders shows you which folder you're viewing. The `../` entry, at the top of the listed folders, lets you go *up* one level. For instance, if you are at `/mnt/onboard` now, tapping the `../` will bring you to `/mnt/`.

Once you have found the folder you have your books listed in, you can long press the selection that opens that folder and you should see a message box popup with the option to **Set as HOME directory**.


-------------
Generated by KOReader %1.
]]),
    rev)
{'fraction_non_alphanumeric': 0.1042031523642732, 'fraction_numerical': 0.0043782837127845885, 'mean_word_length': 4.504819277108433, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2069959', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1265, 'n_words': 576}