Spaces:
Runtime error
Runtime error
deleted venv
Browse files- politweet-environment/bin/Activate.ps1 +0 -241
- politweet-environment/bin/activate +0 -66
- politweet-environment/bin/activate.csh +0 -25
- politweet-environment/bin/activate.fish +0 -64
- politweet-environment/bin/cchardetect +0 -44
- politweet-environment/bin/f2py +0 -8
- politweet-environment/bin/f2py3 +0 -8
- politweet-environment/bin/f2py3.9 +0 -8
- politweet-environment/bin/fonttools +0 -8
- politweet-environment/bin/normalizer +0 -8
- politweet-environment/bin/openai +0 -8
- politweet-environment/bin/pip +0 -8
- politweet-environment/bin/pip3 +0 -8
- politweet-environment/bin/pip3.9 +0 -8
- politweet-environment/bin/pyftmerge +0 -8
- politweet-environment/bin/pyftsubset +0 -8
- politweet-environment/bin/python +0 -1
- politweet-environment/bin/python3 +0 -1
- politweet-environment/bin/python3.9 +0 -1
- politweet-environment/bin/tqdm +0 -8
- politweet-environment/bin/translate +0 -40
- politweet-environment/bin/ttx +0 -8
- politweet-environment/bin/twint +0 -33
- politweet-environment/lib64 +0 -1
- politweet-environment/pyvenv.cfg +0 -3
- politweet-environment/share/man/man1/ttx.1 +0 -225
politweet-environment/bin/Activate.ps1
DELETED
@@ -1,241 +0,0 @@
|
|
1 |
-
<#
|
2 |
-
.Synopsis
|
3 |
-
Activate a Python virtual environment for the current PowerShell session.
|
4 |
-
|
5 |
-
.Description
|
6 |
-
Pushes the python executable for a virtual environment to the front of the
|
7 |
-
$Env:PATH environment variable and sets the prompt to signify that you are
|
8 |
-
in a Python virtual environment. Makes use of the command line switches as
|
9 |
-
well as the `pyvenv.cfg` file values present in the virtual environment.
|
10 |
-
|
11 |
-
.Parameter VenvDir
|
12 |
-
Path to the directory that contains the virtual environment to activate. The
|
13 |
-
default value for this is the parent of the directory that the Activate.ps1
|
14 |
-
script is located within.
|
15 |
-
|
16 |
-
.Parameter Prompt
|
17 |
-
The prompt prefix to display when this virtual environment is activated. By
|
18 |
-
default, this prompt is the name of the virtual environment folder (VenvDir)
|
19 |
-
surrounded by parentheses and followed by a single space (ie. '(.venv) ').
|
20 |
-
|
21 |
-
.Example
|
22 |
-
Activate.ps1
|
23 |
-
Activates the Python virtual environment that contains the Activate.ps1 script.
|
24 |
-
|
25 |
-
.Example
|
26 |
-
Activate.ps1 -Verbose
|
27 |
-
Activates the Python virtual environment that contains the Activate.ps1 script,
|
28 |
-
and shows extra information about the activation as it executes.
|
29 |
-
|
30 |
-
.Example
|
31 |
-
Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
|
32 |
-
Activates the Python virtual environment located in the specified location.
|
33 |
-
|
34 |
-
.Example
|
35 |
-
Activate.ps1 -Prompt "MyPython"
|
36 |
-
Activates the Python virtual environment that contains the Activate.ps1 script,
|
37 |
-
and prefixes the current prompt with the specified string (surrounded in
|
38 |
-
parentheses) while the virtual environment is active.
|
39 |
-
|
40 |
-
.Notes
|
41 |
-
On Windows, it may be required to enable this Activate.ps1 script by setting the
|
42 |
-
execution policy for the user. You can do this by issuing the following PowerShell
|
43 |
-
command:
|
44 |
-
|
45 |
-
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
46 |
-
|
47 |
-
For more information on Execution Policies:
|
48 |
-
https://go.microsoft.com/fwlink/?LinkID=135170
|
49 |
-
|
50 |
-
#>
|
51 |
-
Param(
|
52 |
-
[Parameter(Mandatory = $false)]
|
53 |
-
[String]
|
54 |
-
$VenvDir,
|
55 |
-
[Parameter(Mandatory = $false)]
|
56 |
-
[String]
|
57 |
-
$Prompt
|
58 |
-
)
|
59 |
-
|
60 |
-
<# Function declarations --------------------------------------------------- #>
|
61 |
-
|
62 |
-
<#
|
63 |
-
.Synopsis
|
64 |
-
Remove all shell session elements added by the Activate script, including the
|
65 |
-
addition of the virtual environment's Python executable from the beginning of
|
66 |
-
the PATH variable.
|
67 |
-
|
68 |
-
.Parameter NonDestructive
|
69 |
-
If present, do not remove this function from the global namespace for the
|
70 |
-
session.
|
71 |
-
|
72 |
-
#>
|
73 |
-
function global:deactivate ([switch]$NonDestructive) {
|
74 |
-
# Revert to original values
|
75 |
-
|
76 |
-
# The prior prompt:
|
77 |
-
if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
|
78 |
-
Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
|
79 |
-
Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
|
80 |
-
}
|
81 |
-
|
82 |
-
# The prior PYTHONHOME:
|
83 |
-
if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
|
84 |
-
Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
|
85 |
-
Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
|
86 |
-
}
|
87 |
-
|
88 |
-
# The prior PATH:
|
89 |
-
if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
|
90 |
-
Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
|
91 |
-
Remove-Item -Path Env:_OLD_VIRTUAL_PATH
|
92 |
-
}
|
93 |
-
|
94 |
-
# Just remove the VIRTUAL_ENV altogether:
|
95 |
-
if (Test-Path -Path Env:VIRTUAL_ENV) {
|
96 |
-
Remove-Item -Path env:VIRTUAL_ENV
|
97 |
-
}
|
98 |
-
|
99 |
-
# Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
|
100 |
-
if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
|
101 |
-
Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
|
102 |
-
}
|
103 |
-
|
104 |
-
# Leave deactivate function in the global namespace if requested:
|
105 |
-
if (-not $NonDestructive) {
|
106 |
-
Remove-Item -Path function:deactivate
|
107 |
-
}
|
108 |
-
}
|
109 |
-
|
110 |
-
<#
|
111 |
-
.Description
|
112 |
-
Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
|
113 |
-
given folder, and returns them in a map.
|
114 |
-
|
115 |
-
For each line in the pyvenv.cfg file, if that line can be parsed into exactly
|
116 |
-
two strings separated by `=` (with any amount of whitespace surrounding the =)
|
117 |
-
then it is considered a `key = value` line. The left hand string is the key,
|
118 |
-
the right hand is the value.
|
119 |
-
|
120 |
-
If the value starts with a `'` or a `"` then the first and last character is
|
121 |
-
stripped from the value before being captured.
|
122 |
-
|
123 |
-
.Parameter ConfigDir
|
124 |
-
Path to the directory that contains the `pyvenv.cfg` file.
|
125 |
-
#>
|
126 |
-
function Get-PyVenvConfig(
|
127 |
-
[String]
|
128 |
-
$ConfigDir
|
129 |
-
) {
|
130 |
-
Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"
|
131 |
-
|
132 |
-
# Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
|
133 |
-
$pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue
|
134 |
-
|
135 |
-
# An empty map will be returned if no config file is found.
|
136 |
-
$pyvenvConfig = @{ }
|
137 |
-
|
138 |
-
if ($pyvenvConfigPath) {
|
139 |
-
|
140 |
-
Write-Verbose "File exists, parse `key = value` lines"
|
141 |
-
$pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath
|
142 |
-
|
143 |
-
$pyvenvConfigContent | ForEach-Object {
|
144 |
-
$keyval = $PSItem -split "\s*=\s*", 2
|
145 |
-
if ($keyval[0] -and $keyval[1]) {
|
146 |
-
$val = $keyval[1]
|
147 |
-
|
148 |
-
# Remove extraneous quotations around a string value.
|
149 |
-
if ("'""".Contains($val.Substring(0, 1))) {
|
150 |
-
$val = $val.Substring(1, $val.Length - 2)
|
151 |
-
}
|
152 |
-
|
153 |
-
$pyvenvConfig[$keyval[0]] = $val
|
154 |
-
Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
|
155 |
-
}
|
156 |
-
}
|
157 |
-
}
|
158 |
-
return $pyvenvConfig
|
159 |
-
}
|
160 |
-
|
161 |
-
|
162 |
-
<# Begin Activate script --------------------------------------------------- #>
|
163 |
-
|
164 |
-
# Determine the containing directory of this script
|
165 |
-
$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
166 |
-
$VenvExecDir = Get-Item -Path $VenvExecPath
|
167 |
-
|
168 |
-
Write-Verbose "Activation script is located in path: '$VenvExecPath'"
|
169 |
-
Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
|
170 |
-
Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"
|
171 |
-
|
172 |
-
# Set values required in priority: CmdLine, ConfigFile, Default
|
173 |
-
# First, get the location of the virtual environment, it might not be
|
174 |
-
# VenvExecDir if specified on the command line.
|
175 |
-
if ($VenvDir) {
|
176 |
-
Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
|
177 |
-
}
|
178 |
-
else {
|
179 |
-
Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
|
180 |
-
$VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
|
181 |
-
Write-Verbose "VenvDir=$VenvDir"
|
182 |
-
}
|
183 |
-
|
184 |
-
# Next, read the `pyvenv.cfg` file to determine any required value such
|
185 |
-
# as `prompt`.
|
186 |
-
$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir
|
187 |
-
|
188 |
-
# Next, set the prompt from the command line, or the config file, or
|
189 |
-
# just use the name of the virtual environment folder.
|
190 |
-
if ($Prompt) {
|
191 |
-
Write-Verbose "Prompt specified as argument, using '$Prompt'"
|
192 |
-
}
|
193 |
-
else {
|
194 |
-
Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
|
195 |
-
if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
|
196 |
-
Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
|
197 |
-
$Prompt = $pyvenvCfg['prompt'];
|
198 |
-
}
|
199 |
-
else {
|
200 |
-
Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
|
201 |
-
Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
|
202 |
-
$Prompt = Split-Path -Path $venvDir -Leaf
|
203 |
-
}
|
204 |
-
}
|
205 |
-
|
206 |
-
Write-Verbose "Prompt = '$Prompt'"
|
207 |
-
Write-Verbose "VenvDir='$VenvDir'"
|
208 |
-
|
209 |
-
# Deactivate any currently active virtual environment, but leave the
|
210 |
-
# deactivate function in place.
|
211 |
-
deactivate -nondestructive
|
212 |
-
|
213 |
-
# Now set the environment variable VIRTUAL_ENV, used by many tools to determine
|
214 |
-
# that there is an activated venv.
|
215 |
-
$env:VIRTUAL_ENV = $VenvDir
|
216 |
-
|
217 |
-
if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {
|
218 |
-
|
219 |
-
Write-Verbose "Setting prompt to '$Prompt'"
|
220 |
-
|
221 |
-
# Set the prompt to include the env name
|
222 |
-
# Make sure _OLD_VIRTUAL_PROMPT is global
|
223 |
-
function global:_OLD_VIRTUAL_PROMPT { "" }
|
224 |
-
Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
|
225 |
-
New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt
|
226 |
-
|
227 |
-
function global:prompt {
|
228 |
-
Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
|
229 |
-
_OLD_VIRTUAL_PROMPT
|
230 |
-
}
|
231 |
-
}
|
232 |
-
|
233 |
-
# Clear PYTHONHOME
|
234 |
-
if (Test-Path -Path Env:PYTHONHOME) {
|
235 |
-
Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
|
236 |
-
Remove-Item -Path Env:PYTHONHOME
|
237 |
-
}
|
238 |
-
|
239 |
-
# Add the venv to the PATH
|
240 |
-
Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
|
241 |
-
$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/activate
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
# This file must be used with "source bin/activate" *from bash*
|
2 |
-
# you cannot run it directly
|
3 |
-
|
4 |
-
deactivate () {
|
5 |
-
# reset old environment variables
|
6 |
-
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
|
7 |
-
PATH="${_OLD_VIRTUAL_PATH:-}"
|
8 |
-
export PATH
|
9 |
-
unset _OLD_VIRTUAL_PATH
|
10 |
-
fi
|
11 |
-
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
|
12 |
-
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
|
13 |
-
export PYTHONHOME
|
14 |
-
unset _OLD_VIRTUAL_PYTHONHOME
|
15 |
-
fi
|
16 |
-
|
17 |
-
# This should detect bash and zsh, which have a hash command that must
|
18 |
-
# be called to get it to forget past commands. Without forgetting
|
19 |
-
# past commands the $PATH changes we made may not be respected
|
20 |
-
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
21 |
-
hash -r 2> /dev/null
|
22 |
-
fi
|
23 |
-
|
24 |
-
if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
|
25 |
-
PS1="${_OLD_VIRTUAL_PS1:-}"
|
26 |
-
export PS1
|
27 |
-
unset _OLD_VIRTUAL_PS1
|
28 |
-
fi
|
29 |
-
|
30 |
-
unset VIRTUAL_ENV
|
31 |
-
if [ ! "${1:-}" = "nondestructive" ] ; then
|
32 |
-
# Self destruct!
|
33 |
-
unset -f deactivate
|
34 |
-
fi
|
35 |
-
}
|
36 |
-
|
37 |
-
# unset irrelevant variables
|
38 |
-
deactivate nondestructive
|
39 |
-
|
40 |
-
VIRTUAL_ENV="/home/oresti/Documents/dev/politweet/politweet-environment"
|
41 |
-
export VIRTUAL_ENV
|
42 |
-
|
43 |
-
_OLD_VIRTUAL_PATH="$PATH"
|
44 |
-
PATH="$VIRTUAL_ENV/bin:$PATH"
|
45 |
-
export PATH
|
46 |
-
|
47 |
-
# unset PYTHONHOME if set
|
48 |
-
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
|
49 |
-
# could use `if (set -u; : $PYTHONHOME) ;` in bash
|
50 |
-
if [ -n "${PYTHONHOME:-}" ] ; then
|
51 |
-
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
|
52 |
-
unset PYTHONHOME
|
53 |
-
fi
|
54 |
-
|
55 |
-
if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
|
56 |
-
_OLD_VIRTUAL_PS1="${PS1:-}"
|
57 |
-
PS1="(politweet-environment) ${PS1:-}"
|
58 |
-
export PS1
|
59 |
-
fi
|
60 |
-
|
61 |
-
# This should detect bash and zsh, which have a hash command that must
|
62 |
-
# be called to get it to forget past commands. Without forgetting
|
63 |
-
# past commands the $PATH changes we made may not be respected
|
64 |
-
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
|
65 |
-
hash -r 2> /dev/null
|
66 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/activate.csh
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
# This file must be used with "source bin/activate.csh" *from csh*.
|
2 |
-
# You cannot run it directly.
|
3 |
-
# Created by Davide Di Blasi <davidedb@gmail.com>.
|
4 |
-
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>
|
5 |
-
|
6 |
-
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate'
|
7 |
-
|
8 |
-
# Unset irrelevant variables.
|
9 |
-
deactivate nondestructive
|
10 |
-
|
11 |
-
setenv VIRTUAL_ENV "/home/oresti/Documents/dev/politweet/politweet-environment"
|
12 |
-
|
13 |
-
set _OLD_VIRTUAL_PATH="$PATH"
|
14 |
-
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
|
15 |
-
|
16 |
-
|
17 |
-
set _OLD_VIRTUAL_PROMPT="$prompt"
|
18 |
-
|
19 |
-
if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
|
20 |
-
set prompt = "(politweet-environment) $prompt"
|
21 |
-
endif
|
22 |
-
|
23 |
-
alias pydoc python -m pydoc
|
24 |
-
|
25 |
-
rehash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/activate.fish
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
# This file must be used with "source <venv>/bin/activate.fish" *from fish*
|
2 |
-
# (https://fishshell.com/); you cannot run it directly.
|
3 |
-
|
4 |
-
function deactivate -d "Exit virtual environment and return to normal shell environment"
|
5 |
-
# reset old environment variables
|
6 |
-
if test -n "$_OLD_VIRTUAL_PATH"
|
7 |
-
set -gx PATH $_OLD_VIRTUAL_PATH
|
8 |
-
set -e _OLD_VIRTUAL_PATH
|
9 |
-
end
|
10 |
-
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
|
11 |
-
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
|
12 |
-
set -e _OLD_VIRTUAL_PYTHONHOME
|
13 |
-
end
|
14 |
-
|
15 |
-
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
|
16 |
-
functions -e fish_prompt
|
17 |
-
set -e _OLD_FISH_PROMPT_OVERRIDE
|
18 |
-
functions -c _old_fish_prompt fish_prompt
|
19 |
-
functions -e _old_fish_prompt
|
20 |
-
end
|
21 |
-
|
22 |
-
set -e VIRTUAL_ENV
|
23 |
-
if test "$argv[1]" != "nondestructive"
|
24 |
-
# Self-destruct!
|
25 |
-
functions -e deactivate
|
26 |
-
end
|
27 |
-
end
|
28 |
-
|
29 |
-
# Unset irrelevant variables.
|
30 |
-
deactivate nondestructive
|
31 |
-
|
32 |
-
set -gx VIRTUAL_ENV "/home/oresti/Documents/dev/politweet/politweet-environment"
|
33 |
-
|
34 |
-
set -gx _OLD_VIRTUAL_PATH $PATH
|
35 |
-
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
|
36 |
-
|
37 |
-
# Unset PYTHONHOME if set.
|
38 |
-
if set -q PYTHONHOME
|
39 |
-
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
|
40 |
-
set -e PYTHONHOME
|
41 |
-
end
|
42 |
-
|
43 |
-
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
44 |
-
# fish uses a function instead of an env var to generate the prompt.
|
45 |
-
|
46 |
-
# Save the current fish_prompt function as the function _old_fish_prompt.
|
47 |
-
functions -c fish_prompt _old_fish_prompt
|
48 |
-
|
49 |
-
# With the original prompt function renamed, we can override with our own.
|
50 |
-
function fish_prompt
|
51 |
-
# Save the return status of the last command.
|
52 |
-
set -l old_status $status
|
53 |
-
|
54 |
-
# Output the venv prompt; color taken from the blue of the Python logo.
|
55 |
-
printf "%s%s%s" (set_color 4B8BBE) "(politweet-environment) " (set_color normal)
|
56 |
-
|
57 |
-
# Restore the return status of the previous command.
|
58 |
-
echo "exit $old_status" | .
|
59 |
-
# Output the original/"old" prompt.
|
60 |
-
_old_fish_prompt
|
61 |
-
end
|
62 |
-
|
63 |
-
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
64 |
-
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/cchardetect
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
from __future__ import print_function, unicode_literals
|
3 |
-
import argparse
|
4 |
-
import sys
|
5 |
-
import cchardet
|
6 |
-
|
7 |
-
|
8 |
-
PY2 = sys.version_info.major == 2
|
9 |
-
|
10 |
-
def read_chunks(f, chunk_size):
|
11 |
-
chunk = f.read(chunk_size)
|
12 |
-
while chunk:
|
13 |
-
yield chunk
|
14 |
-
chunk = f.read(chunk_size)
|
15 |
-
|
16 |
-
|
17 |
-
def main():
|
18 |
-
parser = argparse.ArgumentParser()
|
19 |
-
parser.add_argument('files',
|
20 |
-
nargs='*',
|
21 |
-
help="Files to detect encoding of",
|
22 |
-
type=argparse.FileType('rb'),
|
23 |
-
default=[sys.stdin if PY2 else sys.stdin.buffer])
|
24 |
-
parser.add_argument('--chunk-size',
|
25 |
-
type=int,
|
26 |
-
default=(256 * 1024))
|
27 |
-
parser.add_argument('--version',
|
28 |
-
action='version',
|
29 |
-
version='%(prog)s {0}'.format(cchardet.__version__))
|
30 |
-
args = parser.parse_args()
|
31 |
-
|
32 |
-
for f in args.files:
|
33 |
-
detector = cchardet.UniversalDetector()
|
34 |
-
for chunk in read_chunks(f, args.chunk_size):
|
35 |
-
detector.feed(chunk)
|
36 |
-
detector.close()
|
37 |
-
print('{file.name}: {result[encoding]} with confidence {result[confidence]}'.format(
|
38 |
-
file=f,
|
39 |
-
result=detector.result
|
40 |
-
))
|
41 |
-
|
42 |
-
|
43 |
-
if __name__ == '__main__':
|
44 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/f2py
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from numpy.f2py.f2py2e import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/f2py3
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from numpy.f2py.f2py2e import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/f2py3.9
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from numpy.f2py.f2py2e import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/fonttools
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from fontTools.__main__ import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/normalizer
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from charset_normalizer.cli.normalizer import cli_detect
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(cli_detect())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/openai
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from openai._openai_scripts import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/pip
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from pip._internal.cli.main import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/pip3
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from pip._internal.cli.main import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/pip3.9
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from pip._internal.cli.main import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/pyftmerge
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from fontTools.merge import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/pyftsubset
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from fontTools.subset import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/python
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
python3
|
|
|
|
politweet-environment/bin/python3
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
/home/oresti/anaconda3/bin/python3
|
|
|
|
politweet-environment/bin/python3.9
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
python3
|
|
|
|
politweet-environment/bin/tqdm
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from tqdm.cli import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/translate
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import argparse
|
4 |
-
import sys
|
5 |
-
from googletrans import Translator
|
6 |
-
|
7 |
-
def main():
|
8 |
-
parser = argparse.ArgumentParser(
|
9 |
-
description='Python Google Translator as a command-line tool')
|
10 |
-
parser.add_argument('text', help='The text you want to translate.')
|
11 |
-
parser.add_argument('-d', '--dest', default='en',
|
12 |
-
help='The destination language you want to translate. (Default: en)')
|
13 |
-
parser.add_argument('-s', '--src', default='auto',
|
14 |
-
help='The source language you want to translate. (Default: auto)')
|
15 |
-
parser.add_argument('-c', '--detect', action='store_true', default=False,
|
16 |
-
help='')
|
17 |
-
args = parser.parse_args()
|
18 |
-
translator = Translator()
|
19 |
-
|
20 |
-
if args.detect:
|
21 |
-
result = translator.detect(args.text)
|
22 |
-
result = """
|
23 |
-
[{lang}, {confidence}] {text}
|
24 |
-
""".strip().format(text=args.text,
|
25 |
-
lang=result.lang, confidence=result.confidence)
|
26 |
-
print(result)
|
27 |
-
return
|
28 |
-
|
29 |
-
result = translator.translate(args.text, dest=args.dest, src=args.src)
|
30 |
-
result = u"""
|
31 |
-
[{src}] {original}
|
32 |
-
->
|
33 |
-
[{dest}] {text}
|
34 |
-
[pron.] {pronunciation}
|
35 |
-
""".strip().format(src=result.src, dest=result.dest, original=result.origin,
|
36 |
-
text=result.text, pronunciation=result.pronunciation)
|
37 |
-
print(result)
|
38 |
-
|
39 |
-
if __name__ == '__main__':
|
40 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/ttx
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
from fontTools.ttx import main
|
6 |
-
if __name__ == '__main__':
|
7 |
-
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
8 |
-
sys.exit(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/bin/twint
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
#!/home/oresti/Documents/dev/politweet/politweet-environment/bin/python3
|
2 |
-
# EASY-INSTALL-ENTRY-SCRIPT: 'twint==2.1.20','console_scripts','twint'
|
3 |
-
import re
|
4 |
-
import sys
|
5 |
-
|
6 |
-
# for compatibility with easy_install; see #2198
|
7 |
-
__requires__ = 'twint==2.1.20'
|
8 |
-
|
9 |
-
try:
|
10 |
-
from importlib.metadata import distribution
|
11 |
-
except ImportError:
|
12 |
-
try:
|
13 |
-
from importlib_metadata import distribution
|
14 |
-
except ImportError:
|
15 |
-
from pkg_resources import load_entry_point
|
16 |
-
|
17 |
-
|
18 |
-
def importlib_load_entry_point(spec, group, name):
|
19 |
-
dist_name, _, _ = spec.partition('==')
|
20 |
-
matches = (
|
21 |
-
entry_point
|
22 |
-
for entry_point in distribution(dist_name).entry_points
|
23 |
-
if entry_point.group == group and entry_point.name == name
|
24 |
-
)
|
25 |
-
return next(matches).load()
|
26 |
-
|
27 |
-
|
28 |
-
globals().setdefault('load_entry_point', importlib_load_entry_point)
|
29 |
-
|
30 |
-
|
31 |
-
if __name__ == '__main__':
|
32 |
-
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
|
33 |
-
sys.exit(load_entry_point('twint==2.1.20', 'console_scripts', 'twint')())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
politweet-environment/lib64
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
lib
|
|
|
|
politweet-environment/pyvenv.cfg
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
home = /home/oresti/anaconda3/bin
|
2 |
-
include-system-site-packages = false
|
3 |
-
version = 3.9.12
|
|
|
|
|
|
|
|
politweet-environment/share/man/man1/ttx.1
DELETED
@@ -1,225 +0,0 @@
|
|
1 |
-
.Dd May 18, 2004
|
2 |
-
.\" ttx is not specific to any OS, but contrary to what groff_mdoc(7)
|
3 |
-
.\" seems to imply, entirely omitting the .Os macro causes 'BSD' to
|
4 |
-
.\" be used, so I give a zero-width space as its argument.
|
5 |
-
.Os \&
|
6 |
-
.\" The "FontTools Manual" argument apparently has no effect in
|
7 |
-
.\" groff 1.18.1. I think it is a bug in the -mdoc groff package.
|
8 |
-
.Dt TTX 1 "FontTools Manual"
|
9 |
-
.Sh NAME
|
10 |
-
.Nm ttx
|
11 |
-
.Nd tool for manipulating TrueType and OpenType fonts
|
12 |
-
.Sh SYNOPSIS
|
13 |
-
.Nm
|
14 |
-
.Bk
|
15 |
-
.Op Ar option ...
|
16 |
-
.Ek
|
17 |
-
.Bk
|
18 |
-
.Ar file ...
|
19 |
-
.Ek
|
20 |
-
.Sh DESCRIPTION
|
21 |
-
.Nm
|
22 |
-
is a tool for manipulating TrueType and OpenType fonts. It can convert
|
23 |
-
TrueType and OpenType fonts to and from an
|
24 |
-
.Tn XML Ns -based format called
|
25 |
-
.Tn TTX .
|
26 |
-
.Tn TTX
|
27 |
-
files have a
|
28 |
-
.Ql .ttx
|
29 |
-
extension.
|
30 |
-
.Pp
|
31 |
-
For each
|
32 |
-
.Ar file
|
33 |
-
argument it is given,
|
34 |
-
.Nm
|
35 |
-
detects whether it is a
|
36 |
-
.Ql .ttf ,
|
37 |
-
.Ql .otf
|
38 |
-
or
|
39 |
-
.Ql .ttx
|
40 |
-
file and acts accordingly: if it is a
|
41 |
-
.Ql .ttf
|
42 |
-
or
|
43 |
-
.Ql .otf
|
44 |
-
file, it generates a
|
45 |
-
.Ql .ttx
|
46 |
-
file; if it is a
|
47 |
-
.Ql .ttx
|
48 |
-
file, it generates a
|
49 |
-
.Ql .ttf
|
50 |
-
or
|
51 |
-
.Ql .otf
|
52 |
-
file.
|
53 |
-
.Pp
|
54 |
-
By default, every output file is created in the same directory as the
|
55 |
-
corresponding input file and with the same name except for the
|
56 |
-
extension, which is substituted appropriately.
|
57 |
-
.Nm
|
58 |
-
never overwrites existing files; if necessary, it appends a suffix to
|
59 |
-
the output file name before the extension, as in
|
60 |
-
.Pa Arial#1.ttf .
|
61 |
-
.Ss "General options"
|
62 |
-
.Bl -tag -width ".Fl t Ar table"
|
63 |
-
.It Fl h
|
64 |
-
Display usage information.
|
65 |
-
.It Fl d Ar dir
|
66 |
-
Write the output files to directory
|
67 |
-
.Ar dir
|
68 |
-
instead of writing every output file to the same directory as the
|
69 |
-
corresponding input file.
|
70 |
-
.It Fl o Ar file
|
71 |
-
Write the output to
|
72 |
-
.Ar file
|
73 |
-
instead of writing it to the same directory as the
|
74 |
-
corresponding input file.
|
75 |
-
.It Fl v
|
76 |
-
Be verbose. Write more messages to the standard output describing what
|
77 |
-
is being done.
|
78 |
-
.It Fl a
|
79 |
-
Allow virtual glyphs ID's on compile or decompile.
|
80 |
-
.El
|
81 |
-
.Ss "Dump options"
|
82 |
-
The following options control the process of dumping font files
|
83 |
-
(TrueType or OpenType) to
|
84 |
-
.Tn TTX
|
85 |
-
files.
|
86 |
-
.Bl -tag -width ".Fl t Ar table"
|
87 |
-
.It Fl l
|
88 |
-
List table information. Instead of dumping the font to a
|
89 |
-
.Tn TTX
|
90 |
-
file, display minimal information about each table.
|
91 |
-
.It Fl t Ar table
|
92 |
-
Dump table
|
93 |
-
.Ar table .
|
94 |
-
This option may be given multiple times to dump several tables at
|
95 |
-
once. When not specified, all tables are dumped.
|
96 |
-
.It Fl x Ar table
|
97 |
-
Exclude table
|
98 |
-
.Ar table
|
99 |
-
from the list of tables to dump. This option may be given multiple
|
100 |
-
times to exclude several tables from the dump. The
|
101 |
-
.Fl t
|
102 |
-
and
|
103 |
-
.Fl x
|
104 |
-
options are mutually exclusive.
|
105 |
-
.It Fl s
|
106 |
-
Split tables. Dump each table to a separate
|
107 |
-
.Tn TTX
|
108 |
-
file and write (under the name that would have been used for the output
|
109 |
-
file if the
|
110 |
-
.Fl s
|
111 |
-
option had not been given) one small
|
112 |
-
.Tn TTX
|
113 |
-
file containing references to the individual table dump files. This
|
114 |
-
file can be used as input to
|
115 |
-
.Nm
|
116 |
-
as long as the referenced files can be found in the same directory.
|
117 |
-
.It Fl i
|
118 |
-
.\" XXX: I suppose OpenType programs (exist and) are also affected.
|
119 |
-
Don't disassemble TrueType instructions. When this option is specified,
|
120 |
-
all TrueType programs (glyph programs, the font program and the
|
121 |
-
pre-program) are written to the
|
122 |
-
.Tn TTX
|
123 |
-
file as hexadecimal data instead of
|
124 |
-
assembly. This saves some time and results in smaller
|
125 |
-
.Tn TTX
|
126 |
-
files.
|
127 |
-
.It Fl y Ar n
|
128 |
-
When decompiling a TrueType Collection (TTC) file,
|
129 |
-
decompile font number
|
130 |
-
.Ar n ,
|
131 |
-
starting from 0.
|
132 |
-
.El
|
133 |
-
.Ss "Compilation options"
|
134 |
-
The following options control the process of compiling
|
135 |
-
.Tn TTX
|
136 |
-
files into font files (TrueType or OpenType):
|
137 |
-
.Bl -tag -width ".Fl t Ar table"
|
138 |
-
.It Fl m Ar fontfile
|
139 |
-
Merge the input
|
140 |
-
.Tn TTX
|
141 |
-
file
|
142 |
-
.Ar file
|
143 |
-
with
|
144 |
-
.Ar fontfile .
|
145 |
-
No more than one
|
146 |
-
.Ar file
|
147 |
-
argument can be specified when this option is used.
|
148 |
-
.It Fl b
|
149 |
-
Don't recalculate glyph bounding boxes. Use the values in the
|
150 |
-
.Tn TTX
|
151 |
-
file as is.
|
152 |
-
.El
|
153 |
-
.Sh "THE TTX FILE FORMAT"
|
154 |
-
You can find some information about the
|
155 |
-
.Tn TTX
|
156 |
-
file format in
|
157 |
-
.Pa documentation.html .
|
158 |
-
In particular, you will find in that file the list of tables understood by
|
159 |
-
.Nm
|
160 |
-
and the relations between TrueType GlyphIDs and the glyph names used in
|
161 |
-
.Tn TTX
|
162 |
-
files.
|
163 |
-
.Sh EXAMPLES
|
164 |
-
In the following examples, all files are read from and written to the
|
165 |
-
current directory. Additionally, the name given for the output file
|
166 |
-
assumes in every case that it did not exist before
|
167 |
-
.Nm
|
168 |
-
was invoked.
|
169 |
-
.Pp
|
170 |
-
Dump the TrueType font contained in
|
171 |
-
.Pa FreeSans.ttf
|
172 |
-
to
|
173 |
-
.Pa FreeSans.ttx :
|
174 |
-
.Pp
|
175 |
-
.Dl ttx FreeSans.ttf
|
176 |
-
.Pp
|
177 |
-
Compile
|
178 |
-
.Pa MyFont.ttx
|
179 |
-
into a TrueType or OpenType font file:
|
180 |
-
.Pp
|
181 |
-
.Dl ttx MyFont.ttx
|
182 |
-
.Pp
|
183 |
-
List the tables in
|
184 |
-
.Pa FreeSans.ttf
|
185 |
-
along with some information:
|
186 |
-
.Pp
|
187 |
-
.Dl ttx -l FreeSans.ttf
|
188 |
-
.Pp
|
189 |
-
Dump the
|
190 |
-
.Sq cmap
|
191 |
-
table from
|
192 |
-
.Pa FreeSans.ttf
|
193 |
-
to
|
194 |
-
.Pa FreeSans.ttx :
|
195 |
-
.Pp
|
196 |
-
.Dl ttx -t cmap FreeSans.ttf
|
197 |
-
.Sh NOTES
|
198 |
-
On MS\-Windows and MacOS,
|
199 |
-
.Nm
|
200 |
-
is available as a graphical application to which files can be dropped.
|
201 |
-
.Sh SEE ALSO
|
202 |
-
.Pa documentation.html
|
203 |
-
.Pp
|
204 |
-
.Xr fontforge 1 ,
|
205 |
-
.Xr ftinfo 1 ,
|
206 |
-
.Xr gfontview 1 ,
|
207 |
-
.Xr xmbdfed 1 ,
|
208 |
-
.Xr Font::TTF 3pm
|
209 |
-
.Sh AUTHORS
|
210 |
-
.Nm
|
211 |
-
was written by
|
212 |
-
.An -nosplit
|
213 |
-
.An "Just van Rossum" Aq just@letterror.com .
|
214 |
-
.Pp
|
215 |
-
This manual page was written by
|
216 |
-
.An "Florent Rougon" Aq f.rougon@free.fr
|
217 |
-
for the Debian GNU/Linux system based on the existing FontTools
|
218 |
-
documentation. It may be freely used, modified and distributed without
|
219 |
-
restrictions.
|
220 |
-
.\" For Emacs:
|
221 |
-
.\" Local Variables:
|
222 |
-
.\" fill-column: 72
|
223 |
-
.\" sentence-end: "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ \n]*"
|
224 |
-
.\" sentence-end-double-space: t
|
225 |
-
.\" End:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|