Skip to content

Instantly share code, notes, and snippets.

@xavivars
xavivars / superblank-issue.md
Created September 29, 2021 11:09
lt-proc -x eating part of a super blank

Before lt-proc -x

xavi@DEVXIVARS:~/test$ tf-extract -f docx error_apertium.docx  | lt-proc -z -w /usr/share/apertium/apertium-spa-cat/spa-cat.automorf.bin | apertium-wblank-attach | cg-proc -w '/usr/share/apertium/apertium-spa-cat/spa-cat.rlx.bin' | apertium-tagger -g -m -z '/usr/share/apertium/apertium-spa-cat/spa-cat.prob' | apertium-pretransfer -z | lt-proc -b -z '/usr/share/apertium/apertium-spa-cat/spa-cat.autobil.bin' | lrx-proc -z -m '/usr/share/apertium/apertium-spa-cat/spa-cat.autolex-toponims-trad.bin' | lrx-proc -z -m '/usr/share/apertium/apertium-spa-cat/spa-cat.autolex.bin' | apertium-transfer -z -b '/usr/share/apertium/apertium-spa-cat/spa-cat.t1x' '/usr/share/apertium/apertium-spa-cat/spa-cat.t1x.bin' | apertium-posttransfer -z |  apertium-wblank-detach | lt-proc -z -g '/usr/share/apertium/apertium-spa-cat/spa-cat.autogen.bin'
[transfuse:\/tmp\/transfuse-oVLSaYKkzso]

[tf-block:1-8cHcOQ]

[[t:text:Tbd7QQ]]~El[[/]] [[t:text:Tbd7QQ]]gat[[/]] [[t:text:Tbd7QQ]]dorm[[/]][[t:text:Tbd7QQ]].[[/]]
4,9c4,9
< Se fasiá a l'ostal aital o o nos reparava plan lo *carnisser de confidança.
< Se raiava a l'ostal lo *Cadí, qu'èra alavetz çò de mès de normal.
< A l'ostal pas manjàvem jamai peis de riu.
< A l'ostal totjorn volián que portèssem lo copet sens lana e qu'anèssem *clenxinats e amb la *clenxa plan drecha.
< Solíem a l'ostal o far aital.
< Aguèron a l'ostal totjorn fòrça suenh qu'anèssem reparats.
---
> dins ostal se fasiá aital o o nos reparava plan lo *carnisser de confidança.
> dins ostal se raiava lo *Cadí, qu'èra alavetz çò mai normal.
version: '3'
services:
conjugador:
image: conjugador
labels:
- "traefik.enable=true"
- "traefik.http.routers.conjugador.entrypoints=softcatala"
- "traefik.http.routers.conjugador.service=conjugador"
- "traefik.http.routers.conjugador.rule=PathPrefix(`/api/conjugador`)"
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>mossegalapoma</title>
<link>https://mossegalapoma.cat</link>
<language>ca</language>
<description>El teu podcast de tecnologia i ciència en català</description>
<atom:link href="http://xavi.ivars.me/podcasts/mossegalapoma.xml" rel="self" type="application/rss+xml" />
xavi@laptop:~/src/apertium$ cat /tmp/ca-es/content.xml | ./apertium/apertium-desodt -n | sh ../apertium-spa-cat/modes/cat-spa-dgen.mode
[][<?xml version="1.0" encoding="UTF-8"?>
<office:document-content xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:ooo="http:\/\/openoffice.org\/2004\/office" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http:\/\/www.w3.org\/1999\/xlink" xmlns:dc="http:\/\/purl.org\/dc\/elements\/1.1\/" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:rpt="http:\/\/openoffice.org\/2005\/report" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:ta
<?php
/*
Plugin Name: XV Sort Tag Cloud
Description: Sorts properly tag cloud by name (removing accents)
Author: Xavi Ivars
Author URI: http://xavi.ivars.me/
Version: 1.0
License: http://www.gnu.org/copyleft/gpl.html GNU General Public License
*/
@xavivars
xavivars / main.go
Created December 19, 2017 04:41
Discard header and footer
package main
import "fmt"
func filter(s []int, c chan int, header int, footer int) {
var b []int
var e int
fmt.Println("test print in routing")
fmt.Printf("Initial elemements: %d\n", len(s))
@xavivars
xavivars / gist:038c734a7850ea07563c
Created October 30, 2015 06:18
Fix XV Random Quotes table collation
use wordpress;
show full columns from wp_stray_quotes;
alter table wp_stray_quotes change quote quote VARCHAR(100) character set latin1;
alter table wp_stray_quotes change quote quote VARBINARY(100);
alter table wp_stray_quotes change quote quote VARCHAR(100) character set utf8mb4 COLLATE utf8mb4_unicode_ci;
@xavivars
xavivars / performance.py
Created October 14, 2014 21:39
APY unknown performance
#!/usr/bin/env python3
# vim: set ts=4 sw=4 sts=4 et :
import sqlite3, re
from datetime import datetime
missingFreqsDBConn = None
unknownMarkRE = re.compile(r'\*([^.,;:\t\* ]+)')
#!/bin/bash
# crea la carpeta video a l'escriptori, si no existeix
mkdir -p /home/felip/Escriptori/video
# copia tot el que hi ha a DVD_RECORDER a la carpeta VIDEO de l'escriptori
sudo cp -r /media/felip/DVD_RECORDER /home/felip/Escriptori/video
# canvia el propietari de tot el contingut de la carpeta video
sudo chown -R felip:felip /home/felip/Escriptori/video