Patent ID: 7446164

Claim:
A method for the preparation of a polymer, said method comprising the step of subjecting a precursor polymer to a thermal conversion step at a temperature of from 30° C. and 300° C., whereby a polymer having a structure: is obtained, wherein the precursor polymer has a formula: wherein Ar is an aromatic divalent group or a heteroaromatic divalent group, wherein R 0 is selected from the group consisting of an amino group of formula —NR 1 R 2 , an aryloxy group, an alkyl group, an aryl group, an alkylaryl group, an arylalkyl group, a thioether group, an ester group and an acid carboxylic group, and wherein each of R 1 , R 2 , R 3 and R 4 is independently selected from the group consisting of hydrogen, a C 1 -C 20 -alkyl group, a cyclic C 3 -C 20 -alkyl group, an aryl group, an alkylaryl group, an arylalkyl group, and a heterocyclic group, or wherein R 1 and R 2 are linked together to form a cycle, and wherein n is an integer from 5 to 2000.